BOOL CBCGPToolBarImages::Draw | ( | CDC * | pDC, |
int | x, | ||
int | y, | ||
int | iImageIndex, | ||
BOOL | bHilite = FALSE , |
||
BOOL | bDisabled = FALSE , |
||
BOOL | bIndeterminate = FALSE , |
||
BOOL | bShadow = FALSE , |
||
BOOL | bInactive = FALSE , |
||
BYTE | alphaSrc = 255 , |
||
BOOL | bIsIgnoreAlpha = FALSE |
||
) |
Called when an image maintained by a toolbar images object need to be rendered.
Call this function to display the specified by iImageIndex image. You've to call PrepareDrawImage() before calling this method and EndDrawImage() after.
pDC | A pointer to a device context. |
x | Specifies the horizontal image coordinate. |
y | Specifies the vertical image coordinate. |
iImageIndex | Specifies the zero-based index of the image to be displayed. |
bHilite | Specifies whether the image is highlighted. |
bDisabled | Specifies whether the image is disabled. |
bIndeterminate | Specifies whether the image state is indeterminate. |
bShadow | Specifies whether to draw image with the shadow or not. |
bInactive | Specifies whether the image is inactive. |
alphaSrc | Alpha [0-255]. |
bIsIgnoreAlpha | Specifies whether to draw image with alpha or not. |