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


Called by the framework when a menu that has a tear-off bar is activated.

virtual BOOL OnTearOffMenu(
   CMFCPopupMenu* pMenuPopup,
   CPane* pBar
[in] pMenuPopup

A pointer to the pop-up menu.

[in] pBar

A pointer to the tear-off bar.

TRUE to allow the pop-up menu with the tear-off bar to be made activate; otherwise FALSE. The default is TRUE.

Override this function when you want to implement a special setup for the tear-off bar. The default implementation does nothing.

Header: afxMDIFrameWndEx.h

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