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

Called by the framework when the button is being displayed in the toolbar customization dialog list

Returns
A width of the button.

This member function is called by the framework when a CBCGPColorMenuButton object is being displayed in the list box during toolbar customization process.

Parameters
pDCA pointer to a device context
rectSpecifies a visible rectangular area
bSelectedSpecifies whether the button in selected state

Reimplemented from CBCGPToolbarMenuButton.