Brian Koh
April 15th, 1999, 05:15 AM
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
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