Click to See Complete Forum and Search --> : bitmap check button


September 21st, 1999, 08:13 PM
Hi,
I know how to use :-) the mfc class CBitmapButton but, is there any way to use it with a check button (puslike)?
or i would need another class

Thanks in advance

Gerd Mayer
September 23rd, 1999, 08:48 AM
Hi,

you can use a normal checkbox.
Just open the properties of the checkbox and
change the styles into
- Pushlike and
- Bitmap.
The Bitmap can be set e.g. in your OnInitDialog message handler with SetBitmap(resID).

( you can also do this with a radio button )

Good luck


Gerd

September 23rd, 1999, 08:30 PM
thanks, but your solution shows a bitmap on a button, and what I want is something like the
class CBitmapButton, that lets set the four bitmaps for the button: UP,DOWN,FOCUSED...