CMFCVisualManager::OnFillButtonInterior

The framework calls this method when it fills the background of a toolbar button.

virtual void OnFillButtonInterior(
   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 CMFCToolBarButton. The framework fills the background for this button.

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

  • [in] state
    The state of the toolbar button.

Remarks

The default implementation of this method uses the default color to fill the background. Override this method in a derived visual manager to customize the background 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