BCGControlBar Pro for MFC
virtual BOOL CBCGPPopupMenu::Create ( CWnd *  pWndParent,
int  x,
int  y,
HMENU  hMenu,
BOOL  bLocked = FALSE,
BOOL  bOwnMessage = FALSE 
)
virtual

Creates a popup menu and attaches it to a CBCGPPopupMenu object.

Returns
Nonzero if successful; otherwise zero.

The pWndParent parameter should not be NULL if bOwnMessage is TRUE.

Parameters
pWndParentSpecifies the popup menu's parent window.
xSpecifies the horizontal popup menu's position in screen coordinates.
ySpecifies the vertical popup menu's position in screen coordinates.
hMenuA handle to Windows menu.
bLockedSpecifies whether the menu is customizable or not.
bOwnMessageSpecifies how the menu messages are routed. If it is nonzero the messages are sent to the parent window; otherwise the messages are sent to the parent window of the parent popup menu.