|
-
April 15th, 1999, 05:15 AM
#1
Setting button bitmaps
How do you set a bitmap to be the surface of the button using the CButton object? I do not want to use the CBitmapButton class.
I have tried something like this:
CBitmap bmp;
bmp.LoadBitmap(ID_BITMAP1)
button.SetBitmap((HBITMAP)bmp);
but I keep getting a run time error (no helpful info in the error).
I have tried setting the button styles to BS_OWNERDRAW with still no effect.
Would appreciate any help
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
|