-
January 13th, 2004, 03:42 PM
#1
Help! CBitmapButton Dynamically Create
Hi,
I am dynamically creating a bitmapbutton that loads a bitmap on a button.
m_pcBtnAutoMode = new CBitmapButton();
left = 637;
width = 100;
top = 248;
height = 52;
m_pcBtnAutoMode->CreateEx(WS_EX_CLIENTEDGE,csBUTTON_CONTROL,"Auto Mode",
dwSTATUS_STYLE, left, top, width, height,
GetSafeHwnd(), (HMENU) IDC_BUTTON_PROCEED);
CBitmap bmAutoModeOff;
bmAutoModeOff.LoadBitmap(IDB_AUTOMODEOFF);
m_pcBtnAutoMode->SetBitmap(bmAutoModeOff);
I looked at this problem for several hours. The button appears, but not the bitmap. Please help.
Thanks,
Rage
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|