Hi, all, Even all articles i get from google talk about custom draw control create new control base on a already existed control, like CListViewCtrl. I want to...
15700
Igor Tandetnik
itandetnik
Dec 2, 2008 12:21 am
... Derive from CWindowImpl the same way you would derive from an existing control. Handle all the necessary messages, most importantly WM_PAINT. -- With best...
15701
hawkgao
Dec 2, 2008 8:00 am
There is no book about this. The several examples shipped with WTL cannot cover the usage of all classes. The only site we can get the relative new material is...
15702
Nikos Bozinis
umeca74
Dec 2, 2008 12:22 pm
mystery solved, I needed to change CPageSetupDialogImpl constructor a bit m_psd.lpfnPagePaintHook=(LPPAGEPAINTHOOK)(m_thunkPaint.thunk.pThunk); ...
15703
He Shiming
billholtsh
Dec 5, 2008 1:08 pm
Hi, I'm hosting a browser control with CAxWindow. It's a window with WS_OVERLAPPEDWINDOW style. I needed to trap the javascript window.resizeBy call and resize...
15704
Igor Tandetnik
itandetnik
Dec 5, 2008 1:37 pm
"He Shiming" <heshiming@...> wrote in message news:ghb950+dr6j@eGroups.com ... And that's your mistake. Your QueryInterface should support queries for ...
15705
He Shiming
billholtsh
Dec 5, 2008 1:59 pm
... for ... Wow, thank you very much for the quick reply. It worked after I provided the QueryInterface implementation. Best regards, He Shiming...
15706
carr 帅
shuaixh
Dec 10, 2008 11:29 pm
hello: i write a com dll in-proc server in raw C++ code. in the project, i write a idl file for type info , after compiling the file , i get a *.tlb...
15707
Igor Tandetnik
itandetnik
Dec 10, 2008 11:45 pm
... It's attached as a resource. In your .rc file, put something like 1 TYPELIB projectname.tlb ... Remove the line that looks like the above from the .rc...
15708
amit_31_08
Dec 11, 2008 12:46 pm
Hi all, I am facing problem while adding ON_PAINT message handler in property page of property sheet wizard. Property page is not been painted properly. Bottom...
15709
Constantin Bryzgalin
costyan
Dec 11, 2008 1:15 pm
Hello, ... If painting a chart is the only reason you handle WM_PAINT then I'm pretty sure you're doing it not the best way. If I were you, I'd drop a...
15710
amit_31_08
Dec 12, 2008 10:52 am
Hello, I want to catch WM_KEYDOWN message in property page of property sheet wizard. I have declared MESSAGE_HANDLER(WM_KEYDOWN,OnKeyDown) in the same class to...
15711
Igor Tandetnik
itandetnik
Dec 12, 2008 12:50 pm
"amit_31_08" <amit_31_08@...> wrote in message news:ghtfpb+ek6m@eGroups.com ... Keyboard messages go to the window having focus. In your case, that's ...
15712
amit_31_08
Dec 12, 2008 1:12 pm
Well i am trying to catch WM_KEYDOWN event which comes when left arrow key is pressed. I am calling SetFocus() function in OnInitDialog() routine. I want to...
15713
Igor Tandetnik
itandetnik
Dec 12, 2008 1:41 pm
"amit_31_08" <amit_31_08@...> wrote in message news:ghtnvc+pg71@eGroups.com ... I'm not sure I understand. A slider control already handles arrow keys ...
15714
amit_31_08
Dec 12, 2008 1:48 pm
I said custom drawn slider control not a standard one. I have drawn slider in picture box control where it moves and select particular sample. Using mouse...
15715
Igor Tandetnik
itandetnik
Dec 12, 2008 11:50 pm
... Be aware that a standard slider control (referred to in MS documentation as Trackbar control) can be custom-drawn, by handling NM_CUSTOMDRAW notification....
15716
xufeisjtu
Dec 13, 2008 5:50 am
why CSplitterImpl ? CSplitterImpl is a seperated class, from which CSplitterWindowImpl is derived. I guess CSplitterImpl is seperated into one class is to make...
15717
xufeisjtu
Dec 13, 2008 11:21 am
FORWARD_NOTIFICATIONS is used widely in WTL, which seems to be the default behavior. But in MFC, REFLECT is the default behavior, which seems to be more ...
... Most classes in WTL (and the ATL library) are designed to use as little overhead as possible. Reflecting messages back to controls that do not process them...
15720
amit_31_08
Dec 15, 2008 5:33 am
Thanks for your reply. Basic question remains as it is i.e. how should i receive WM_KEYDOWN message in property page of property sheet wizard. Any sample which...
15721
carr 帅
shuaixh
Dec 15, 2008 6:20 am
hello: i want to use the printer in WTL, to ___________________________________________________________ ...
15722
carr 帅
shuaixh
Dec 15, 2008 6:20 am
hello: i want to use the printer in WTL, ___________________________________________________________ 好玩贺卡等你发,邮箱贺卡全新上线! ...
15723
carr 帅
shuaixh
Dec 15, 2008 6:23 am
hello, i want to use the printer in WTL to print lines of datas from a listview. i don't know how to do that. is there any code examples out there about...
15724
carr 帅
shuaixh
Dec 15, 2008 12:34 pm
hi , when i custom draw listview's single cell, there's no "OnSubItemPostPaint" overd function, so i add the following to the WTL source code. and it works...
15725
He Shiming
billholtsh
Dec 15, 2008 12:44 pm
... no "OnSubItemPostPaint" overd function, so i add the following to the WTL source code. and it works well. ... LPNMCUSTOMDRAW /*lpNMCustomDraw*/) ... You...
15726
Igor Tandetnik
itandetnik
Dec 15, 2008 12:44 pm
"amit_31_08" <amit_31_08@...> wrote in message news:gi4q6r+l9dp@eGroups.com ... Which part of "you would need to install a keyboard hook - see ...
15727
Yarp
yarp2002
Dec 15, 2008 7:26 pm
sure, the events have to be explicitely called. There's a good example on CP of a custom drawn LV (not WTL but pretty similar): ...
15728
Michael Stephenson
domehead100
Dec 15, 2008 7:49 pm
Hi amit, The typical WTL way to get messages in a parent window that were sent to a child is to subclass the child window by creating a member variable for the...