显示弹出菜单。
virtual BOOL ShowPopupMenu(
UINT uiMenuResId,
const CPoint& point,
CWnd* pWnd
);
参数
[in] uiMenuResId
菜单资源ID.[in] point
CPoint 在屏幕上指定菜单位置协调。[in] pWnd
指针到拥有该弹出菜单的窗口。
返回值
非零,则该弹出菜单成功地显示;0否则为。
备注
此方法以显示菜单与 uiMenuResId。
若要支持弹出菜单,您必须具有 CContextMenuManager 对象。如果尚未初始化 CContextMenuManager 对象,ShowPopupMenu 将失败。
要求
标头: afxwinappex.h