CMFCCaptionBar::OnDrawButton
Called by the framework to draw the caption bar button.
virtual void OnDrawButton(
CDC* pDC,
CRect rect,
const CString& strButton,
BOOL bEnabled
);
Parameters
[in] pDC
A pointer to a device context that is used to display the button.[in] rect
The bounding rectangle of the button.[in] strButton
The button's text label.[in] bEnabled
TRUE if the button is enabled; FALSE otherwise.
Remarks
Override this method in a CMFCCaptionBar derived class to customize the appearance of the caption bar's button.
Requirements
Header: afxcaptionbar.h