Compartilhar via


CMFCColorMenuButton::OnDrawOnCustomizeList

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

See Also

Reference

CMFCColorMenuButton Class

Hierarchy Chart