Making a Bitmap Button
Mobile
1
Posts
1
Posters
0
Views
1
Watching
-
Hi, I'm using the CbitmapButton class in a dialog box. When I use the "AutoLoad" member to load the bitmaps, it's works ok. Is there a way to use the "LoadBitmaps" member instead "Autoload"?? (I have read in the help that "loadBitmap" can be used only under a window, not for in dialog use). I try it and using "LoadBitmaps" it doesn't paint the bitmaps: // Create a push button. m_MyBOTON.Create(NULL, BS_PUSHBUTTON|BS_OWNERDRAW, CRect(100,100,100,100), this, IDC_MYBOTON); m_MyBOTON.LoadBitmaps(IDB_UP, IDB_DOWN, 0, 0); Thanks in advance. Regards, Javier.