CWinAppEx::ShowPopupMenu
Visual Studio 2012
Displays a popup menu.
virtual BOOL ShowPopupMenu( UINT uiMenuResId, const CPoint& point, CWnd* pWnd );
This method displays the menu associated with uiMenuResId.
To support popup menus, you must have a CContextMenuManager object. If you have not initialized the CContextMenuManager object, ShowPopupMenu will fail.