Expand Minimize
This topic has not yet been rated - Rate this topic

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 
);
[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.

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.

Header: afxvisualmanager.h

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.