Partager via


CMFCVisualManager::OnDrawButtonBorder

The framework calls this method when it draws the border of a toolbar button.

virtual void OnDrawButtonBorder(
   CDC* pDC,
   CMFCToolBarButton* pButton,
   CRect rect,
   CMFCVisualManager::AFX_BUTTON_STATE state 
);

Parameters

  • [in] pDC
    A pointer to the device context of a toolbar button.

  • [in] pButton
    A pointer to a toolbar button. The framework draws the border of this button.

  • [in] rect
    A rectangle that specifies the boundaries of the toolbar button.

  • [in] state
    An enumerated data type that specifies the current state of the toolbar button.

Remarks

The default implementation of this method displays the standard border. Override this method in a derived visual manager to customize the appearance of the border of a toolbar button.

The possible states of a toolbar button are ButtonsIsRegular, ButtonsIsPressed, or ButtonsIsHighlighted.

Requirements

Header: afxvisualmanager.h

See Also

Reference

CMFCVisualManager Class

Hierarchy Chart