BCGControlBar Pro for MFC
virtual BOOL CBCGPContextMenuManager::ShowPopupMenu ( UINT  uiMenuResId,
int  x,
int  y,
CWnd *  pWndOwner,
BOOL  bOwnMessage = FALSE,
BOOL  bRightAlign = FALSE 
)
virtual

Displays a popup menu

Returns
Returns nonzero if the menu was displayed successfully; otherwise 0.

Call this function to display the popup menu. If bAutoDestroy parameter is 0, you should call DestroyMenu.

Parameters
uiMenuResIdSpecifies the menu resource ID
xSpecifies horizontal offset in the client area coordinates
ySpecifies vertical offset in the client area coordinates
pWndOwnerSpecifies how messages are routed; if nonzero the owner receives the messages, otherwise the standard MFC routing is used
bOwnMessageSpecifies how messages are routed; if nonzero the owner receives the messages, otherwise the standard MFC routing is used
bRightAlignIf TRUE, the menu is right-aligned (for RTL reading order).