void CBCGPButton::SetImage | ( | HICON | hIcon, |
BOOL | bAutoDestroy = TRUE , |
||
HICON | hIconHot = NULL , |
||
HICON | hIconDisabled = NULL , |
||
BOOL | bAlphaBlend = FALSE , |
||
HICON | hIconPressed = NULL |
||
) |
Specifies an image to be displayed on the button
Call this member function to set a new button's image.
hIcon | Handle to the icon that contains the bitmap and mask for the new image |
bAutoDestroy | Specifies whether the bitmap resources should be destroyed automatically. |
hIconHot | Handle to the icon that contains the bitmap and mask for the hot image |
hIconDisabled | A handle to icon used for disabled image. |
bAlphaBlend | Set this parameter to TRUE for 32-bit images with alpha channel only. |
hIconPressed | A handle to icon used for pressed image. |