Partager via


COleIPFrameWndEx::OnShowPopupMenu

Called by the framework when a pop-up menu is displayed.

virtual BOOL OnShowPopupMenu(
   CMFCPopupMenu* pMenuPopup
);

Parameters

  • [in] pMenuPopup
    Pointer to the pop-up menu to be displayed.

Return Value

The default implementation does nothing and returns a non-zero value. Your implementation should return FALSE if the pop-up menu cannot be displayed.

Remarks

Override this method to customize the display of a pop-up menu. For example, you could change the menu buttons to color menu buttons or initialize tear-off bars.

Requirements

Header: afxoleipframewndex.h

See Also

Reference

COleIPFrameWndEx Class

Hierarchy Chart