Condividi tramite


CFrameWndEx::OnShowPopupMenu

Called by the framework when it displays a pop-up menu.

virtual BOOL OnShowPopupMenu(
   CMFCPopupMenu* pMenu
);

Parameters

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

Return Value

TRUE if the pop-up menu is visible; otherwise FALSE.

Remarks

Override this method in a derived class to execute custom code when the framework displays a pop-up menu. For example, override this method to change the background color of the commands in a pop-up menu.

Requirements

Header: afxframewndex.h

See Also

Reference

CFrameWndEx Class

Hierarchy Chart