CMFCVisualManager::GetToolbarButtonTextColor
The framework calls this method to determine the text color of a toolbar button.
virtual COLORREF GetToolbarButtonTextColor(
CMFCToolBarButton* pButton,
CMFCVisualManager::AFX_BUTTON_STATE state
);
Parameters
[in] pButton
A pointer to the toolbar button.[in] state
The state of the toolbar button.
Return Value
The text color of pButton when it has the state indicated by state.
Remarks
The text color of a CMFCToolBarButton Class object depends on the state of the button. The possible states of a toolbar button are ButtonsIsRegular, ButtonsIsPressed, or ButtonsIsHighlighted.
Override this function to customize the text color of a toolbar button in your application.
Requirements
Header: afxvisualmanager.h