CFrameWndEx::OnShowPopupMenu

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

virtual BOOL OnShowPopupMenu(
   CMFCPopupMenu* pMenu
);

[in] pMenu

A pointer to a pop-up menu.

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

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.

Header: afxframewndex.h

Show: