Partager via


COleIPFrameWndEx::OnTearOffMenu

Called by the framework when the user selects a menu that has a tear-off bar.

virtual BOOL OnTearOffMenu(
   CMFCPopupMenu* pMenuPopup,
   CPane* pBar 
);

Parameters

  • [in] pMenuPopup
    A pointer to the pop-up menu that the user selected.

  • [in] pBar
    A pointer to the pane that hosts the menu.

Return Value

TRUE if you want the framework to activate the pop-up menu; otherwise FALSE. The default value is TRUE.

Remarks

Override this function if you want to customize the setup of the tear-off bar.

Requirements

Header: afxoleipframewndex.h

See Also

Reference

COleIPFrameWndEx Class

Hierarchy Chart