Поделиться через


CMFCToolBar::DrawButton

Repaints a toolbar button.

virtual BOOL DrawButton(
   CDC* pDC,
   CMFCToolBarButton* pButton,
   CMFCToolBarImages* pImages,
   BOOL bHighlighted,
   BOOL bDrawDisabledImages 
);

Parameters

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

  • [in] pButton
    A pointer to a button to draw.

  • [in] pImages
    A pointer to the toolbar images.

  • [in] bHighlighted
    TRUE if the button is highlighted; otherwise FALSE.

  • [in] bDrawDisabledImages
    TRUE if disabled buttons are dimmed; otherwise FALSE.

Return Value

TRUE if the button was repainted; FALSE if the button is hidden.

Remarks

The CMFCToolBar::DrawButton method calls this method when a toolbar button must be repainted.

Override this method if you want to customize the appearance of buttons on your toolbar.

Requirements

Header: afxtoolbar.h

See Also

Reference

CMFCToolBar Class

Hierarchy Chart

CMFCToolBar::DrawButton