Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Called by the framework before a CMFCColorMenuButton object is displayed in the list of a toolbar customization dialog box.
virtual int OnDrawOnCustomizeList(
CDC* pDC,
const CRect& rect,
BOOL bSelected
);
Parameters
[in] pDC
A pointer to a device context.[in] rect
A rectangle that bounds the button to be drawn.[in] bSelected
TRUE specifies that the button is in selected state; otherwise, FALSE.
Return Value
The width of the button.
Remarks
This method is called by the framework when a CMFCColorMenuButton object is displayed in the list box during the toolbar customization process.
Requirements
Header: afxcolormenubutton.h