BCGControlBar Pro for MFC
virtual void CBCGPToolbarButton::OnDraw ( CDC *  pDC,
const CRect &  rect,
CBCGPToolBarImages pImages,
BOOL  bHorz = TRUE,
BOOL  bCustomizeMode = FALSE,
BOOL  bHighlight = FALSE,
BOOL  bDrawBorder = TRUE,
BOOL  bGrayDisabledButtons = TRUE 
)
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.

Parameters
pDCA pointer to a device context to display the button.
rectSpecifies the bounding rectangle.
pImagesA pointer to the collection of toolbar images.
bHorzThe dock state of the parent toolbar. TRUE - horizontal; FALSE - vertical.
bCustomizeModeSpecifies the current mode; TRUE - customize mode, FALSE - regular mode.
bHighlightSpecifies whether the button is highlighted (TRUE) or not (FALSE).
bDrawBorderSpecifies whether the button should display its border.
bGrayDisabledButtonsSpecifies whether to gray disabled buttons (TRUE) or take them from the disabled images collection (FALSE).

Reimplemented in CBCGPColorMenuButton.