|
virtual |
Called by the framework when the button is required to display itself.
This function performs the actual drawing of the toolbar button according to its styles and flags.
Override this function to customize the toolbar button rendering.
pDC | A pointer to a device context to display the button. |
rect | Specifies the bounding rectangle. |
pImages | A pointer to the collection of toolbar images. |
bHorz | The dock state of the parent toolbar. TRUE - horizontal; FALSE - vertical. |
bCustomizeMode | Specifies the current mode; TRUE - customize mode, FALSE - regular mode. |
bHighlight | Specifies whether the button is highlighted (TRUE) or not (FALSE). |
bDrawBorder | Specifies whether the button should display its border. |
bGrayDisabledButtons | Specifies whether to gray disabled buttons (TRUE) or take them from the disabled images collection (FALSE). |
Reimplemented in CBCGPColorMenuButton.