CMFCColorMenuButton::OnDraw

Called by the framework to display an image on a button.

virtual void OnDraw(
   CDC* pDC,
   const CRect& rect,
   CMFCToolBarImages* pImages,
   BOOL bHorz=TRUE,
   BOOL bCustomizeMode=FALSE,
   BOOL bHighlight=FALSE,
   BOOL bDrawBorder=TRUE,
   BOOL bGrayDisabledButtons=TRUE 
);

Parameters

  • [in] pDC
    A pointer to a device context.

  • [in] rect
    A rectangle that bounds the area to be redrawn.

  • [in] pImages
    Points to a list of toolbar images.

  • [in] bHorz
    TRUE to specify that the toolbar is in a horizontal docked state; otherwise, FALSE. The default is TRUE.

  • [in] bCustomizeMode
    TRUE to specify that the application is in customization mode; otherwise, FALSE. The default is FALSE.

  • [in] bHighlight
    TRUE to specify that the button is highlighted; otherwise, FALSE. The default is FALSE.

  • [in] bDrawBorder
    TRUE to specify that the button's border is displayed; otherwise, FALSE. The default is TRUE.

  • [in] bGrayDisabledButtons
    TRUE to specify that disabled buttons are grayed (dimmed) out; otherwise, FALSE. The default is TRUE.

Requirements

Header: afxcolormenubutton.h

See Also

Reference

CMFCColorMenuButton Class

Hierarchy Chart