| void CBCGPButton::SetImage | ( | HBITMAP | hBitmap, |
| BOOL | bAutoDestroy = TRUE, |
||
| HBITMAP | hBitmapHot = NULL, |
||
| BOOL | bMap3dColors = TRUE, |
||
| HBITMAP | hBitmapDisabled = NULL, |
||
| HBITMAP | hBitmapPressed = NULL |
||
| ) |
Specifies an image to be displayed on the button
Call this member function to set a new button's image.
| bAutoDestroy | Specifies whether the bitmap resources should be destroyed automatically. |
| hBitmap | Handle to the bitmap containing the image for non-selected state |
| hBitmapHot | Handle to the bitmap that contains the image for selected state |
| bMap3dColors | Specifies how to treat transparent colors. If TRUE, the framework assumes that RGB (192, 192, 192) is a transparent color, if FALSE, it takes the transparent color value from BCGPGLOBAL_DATA::clrBtnFace. |
| hBitmapDisabled | A handle to bitmap used for disabled image. |
| hBitmapPressed | A handle to bitmap used for pressed image. |