Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Displays a popup menu.
virtual BOOL ShowPopupMenu(
UINT uiMenuResId,
const CPoint& point,
CWnd* pWnd
);
Parameters
[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.
Return Value
Nonzero if the popup menu is displayed successfully; 0 otherwise.
Remarks
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.
Requirements
Header: afxwinappex.h