BCGControlBar Pro for MFC
virtual CBCGPPopupMenu* CBCGPContextMenuManager::ShowPopupMenu ( HMENU  hmenuPopup,
int  x,
int  y,
CWnd *  pWndOwner,
BOOL  bOwnMessage = FALSE,
BOOL  bAutoDestroy = TRUE,
BOOL  bRightAlign = FALSE 
)
virtual

Displays a popup menu

Returns
Returns a pointer to the CBCGPPopupMenu object when the menu is displayed successfully; otherwise NULL.

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

Parameters
hmenuPopupSpecifies the handle to the menu
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
hmenuPopupSpecifies the handle to the menu
bAutoDestroySpecifies whether the menu should be destroyed automatically
bRightAlignIf TRUE, the menu is right-aligned (for RTL reading order).