Dela via


CFrameWndEx::OnTearOffMenu

Called by the framework when the application displays a menu that has a tear-off bar.

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

Parameters

  • [in] pMenuPopup
    A pointer to a pop-up menu.

  • [in] pBar
    A pointer to a tear-off bar.

Return Value

TRUE if the pop-up menu with the tear-off bar is enabled; otherwise FALSE.

Remarks

Override this method in a derived class to execute custom code when the framework displays a control bar.

The default implementation does nothing and returns TRUE.

Requirements

Header: afxframewndex.h

See Also

Reference

CFrameWndEx Class

Hierarchy Chart