BCGControlBar Pro for MFC
virtual BOOL CBCGPToolBar::DrawButton ( CDC *  pDC,
CBCGPToolbarButton pButton,
CBCGPToolBarImages pImages,
BOOL  bHighlighted,
BOOL  bDrawDisabledImages 
)
protectedvirtual

Called when a toolbar's button need to be repainted.

Returns
Nonzero if a button was repainted; it is 0 if a button is hidden.

The DrawButton member function is usually called by DoPaint when a toolbar's button need to be repainted.

Override this function in your CBCGPToolBar - derived class when you want to provide a custom drawing algorithm for the toolbar's buttons.

Parameters
pDCA pointer to a device context.
pButtonA pointer to a button to draw.
pImagesPoints to the toolbar images.
bHighlightedPoints to the toolbar images.
bDrawDisabledImagesSpecifies whether the button's image should be grayed out or taken from the image list if the button is disabled.