Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Collapse the table of content
Expand the table of content


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

© 2015 Microsoft