Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CWinAppEx::ShowPopupMenu
Collapse the table of content
Expand the table of content

CWinAppEx::ShowPopupMenu

Displays a popup menu.

virtual BOOL ShowPopupMenu(
   UINT uiMenuResId,
   const CPoint& point,
   CWnd* pWnd 
);

[in] uiMenuResId

A menu resource ID.

[in] point

A CPoint that specifies the position of the menu in screen coordinates.

[in] pWnd

A pointer to the window that owns the popup menu.

Nonzero if the popup menu is displayed successfully; 0 otherwise.

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.

Header: afxwinappex.h

Show:
© 2015 Microsoft