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


The framework calls this method when it draws the caption for a CMFCPopupMenu Class object.

virtual void OnDrawTearOffCaption(
   CDC* pDC,
   CRect rect,
   BOOL bIsActive
[in] pDC

A pointer to a device context.

[in] rect

A rectangle that specifies the boundaries of the caption.

[in] bIsActive

TRUE if the caption is active; FALSE otherwise.

This function is called by the framework when a CMFCPopupMenu Class object processes a WM_PAINT message and must draw a tear-off caption.

Override this method in a derived class to customize the look of captions for tear-off bars.

Header: afxvisualmanageroffice2003.h

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