Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic


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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.