BCGControlBar Pro for MFC
virtual int CBCGPToolbarButton::OnDrawOnCustomizeList ( CDC *  pDC,
const CRect &  rect,
BOOL  bSelected 
)
virtual

Called by the framework when the button is required to draw itself on the customize list in the customization dialog.

Returns
The actual width of the button on the specified device context.

This function is called from the customization dialog ("Commands" tab), when the button is required to display itself on the owner-draw list box.

The default implementation displays the button's image (if available) and the text label. If the text label of the button is not available, it tries to display the tooltip text.

You should override this member function in a CBCGPToolbarButton - derived class to properly display its objects on the customize list (if required).

Parameters
pDCA pointer to a device context
rectA bounding rectangle.
bSelectedSpecifies whether the button to be displayed is selected (TRUE) or not (FALSE).

Reimplemented in CBCGPColorMenuButton.