The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.



Called by the framework to draw the caption bar button.

virtual void OnDrawButton(
   CDC* pDC,
   CRect rect,
   const CString& strButton,
   BOOL bEnabled 

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

Override this method in a CMFCCaptionBar derived class to customize the appearance of the caption bar's button.


Header: afxcaptionbar.h