Sorry if this is a stupid quesion, but I don't seem to be able to get the CBitmapButton class to dsiplay any bitmaps. I have created a member variable for a...
738
Jon Dee
dee@...
Mar 1, 2001 11:27 pm
did you remember to add a CHAIN_MSG_MAP(CBitmapButtonImpl<yourclass>) in the class you derive from CBitmapButtonImpl? -jon ... From: sweiler@......
739
sweiler@...
Mar 1, 2001 11:46 pm
I haven't derived my own class but instead am attempting to use the CBitmapButton derivation of CBitmapButtonImpl. Should I be deriving my own class? ... ...
740
Jose Morris (Aditi)
a-josem@...
Mar 2, 2001 12:35 am
When you are setting the images you have to detatch them from CImageList otherwise the images are destroyed when the function goes out of scope. Either declare...
741
sweiler@...
Mar 2, 2001 1:01 am
I really am starting to feel stupid. The image list (CImageList) and bitmaps (CBitmap) are member variables of the form view. Therefore they should not go...
742
Jose Morris (Aditi)
a-josem@...
Mar 2, 2001 1:07 am
You should not do m_bmpbtnNext.Attach(GetDlgItem(IDC_BUTTON1)); instead do m_bmpbtnNext.SubclassWindow(GetDlgItem(IDC_BUTTON1)); -Jose ... From:...
743
sweiler@...
Mar 2, 2001 1:15 am
Thank you, I knew it was a silly mistake. I stared at that code for almost an hour and never saw that line. Thanks again. Shawn...
744
vlasov@...
Mar 4, 2001 3:00 pm
Just wanted to center CPropertySheetImpl<COptionsDlg>, but how? There is no WM_INITDIALOG or WM_CREATE to catch. I know it is possible to catch WM_INITDIALOG...
745
Richard Crossley
rdc@...
Mar 5, 2001 1:03 am
The property sheet is not subclassed untill after WM_INITDIALOG has been sent. This appears to work but there must be a better way. Richard class COptionSheet...
746
Taras Tielkes
t.r.tiekes@...
Mar 5, 2001 11:13 pm
Hi, When I try to get a 16 or 32 pixel icon from my running WTL app, CMainFrame::GetIcon() (from CWindow) returns NULL. I can load the icon fine using LoadIcon...
747
Nenad Stefanovic
nenads@...
Mar 6, 2001 12:10 am
Hi Taras, Yeah, WM_GETICON is very confusing - it will return only icons set by WM_SETICON. You'll have to get the info from the WNDCLASS used to create a ...
748
Taras Tielkes
t.r.tiekes@...
Mar 6, 2001 11:47 am
Thanks Nenad, I checked WM_GETICON in "Win32 Programming" (my bible) and in the MSDN lib before posting, but didn't find this info. Is there perhaps some...
749
Nenad Stefanovic
nenads@...
Mar 6, 2001 12:04 pm
Hi Taras, I discover that behavior just by using the message. I assume that by "icon associated with a window", documentation actually refers only to icons ...
750
vlasov@...
Mar 6, 2001 4:52 pm
Thank you for reply. This works, but property sheet first appears as usual, and then repositioned (a lot of flickering). It seems the only solution is to catch...
751
Carlos A. Ferraro Cav...
carlos.ferraro-cavall...
Mar 6, 2001 5:06 pm
... If you hide the property sheet window, move it, and then show it, you get rid of the flickering. I've done like this many times before with dialogs. ...
752
Carlos A. Ferraro Cav...
carlos.ferraro-cavall...
Mar 6, 2001 5:18 pm
On Tue, 6 Mar 2001, Carlos A. Ferraro Cavallini wrote: CAFC > On Tue, 6 Mar 2001 vlasov@... wrote: CAFC > CAFC > > Thank you for reply. This works, but...
753
billa@...
Mar 6, 2001 5:20 pm
I don't know if this will work, but what about overriding CPropertySheetImpl<>::PropSheetCallback and calling CenterWindow() in the PSCB_INITIALIZED handler. ...
754
Alexander Shingel
a-shingel@...
Mar 7, 2001 10:32 am
Hello, Vladimir! ... Try this way: class CMySheet : public CPropertySheetImpl<CMySheet> { ... BEGIN_MSG_MAP(CMySheet) MESSAGE_HANDLER(WM_SIZE, OnSize) ...
755
dbowen@...
Mar 7, 2001 10:36 pm
WTL::CPropertySheetImpl, WTL::CPropertyPageImpl IE 5.5 Let's say that there's a property sheet with 2 property pages, and the user is looking at the first...
756
MB
mb2@...
Mar 8, 2001 7:59 am
Hello. I'd like to introduce a web browser WTL application. This is based on my application, but more cool. http://tds.sourceforge.net/ Thank you. MB...
757
sbl@...
Mar 8, 2001 4:07 pm
I'm adding WTL into an MFC project while in the process of migrating away from MFC. I'm finding that I need to add namespace declarations to common items (e.g....
758
sweiler@...
Mar 8, 2001 5:06 pm
I was wondering if anyone has successfully modified the background color of a CTabCtrl. The tab control is sitting on a FormView (dervied from ...
759
Jim Texter
jtexter@...
Mar 8, 2001 5:23 pm
760
Rich
legalize@...
Mar 8, 2001 5:36 pm
In article <08DF40A3727A214F97699BC32469B8920EDAE1@...>, ... I had the same problem compiling some of the WTL samples. The problem is fixed by...
761
Brandon Corfman
bcorfman@...
Mar 9, 2001 1:52 pm
I've never attempted it, but I'm guessing you would subclass the control and intercept WM_ERASEBKGRND. If anyone has a better idea, jump in. Regards, Brandon...
762
Leon Finker
lf21@...
Mar 9, 2001 3:17 pm
http://support.microsoft.com/support/kb/articles/Q179/9/09.ASP (HOWTO: Change the Background Color of a Tab Control, Q179909) You also might want to handle the...
763
sweiler@...
Mar 9, 2001 3:22 pm
Thanks Brandon, I managed to figure it out late last night. I will clean up the code this morning and hopefully post the relevant stuff a bit later. You are...
764
sweiler@...
Mar 9, 2001 8:34 pm
Hi All, In order to change the background color of a CTabCtrl you need to handle two messages (WM_ERASEBKGND and WM_DRAWITEM or OCM_DRAWITEM). The following is...
765
keno@...
Mar 9, 2001 9:57 pm
Hello all, My WTL is an SDI app, but can be started in a way that the main frame window is not shown, but instead a dialog appears. I am trying to figure out...
766
keno@...
Mar 9, 2001 10:14 pm
I figured it out. I actually figured it out before hand, but bad placement of parens () messed me up: pDlg->SetWindowLong(GWL_EXSTYLE,...