BCGControlBar Pro for MFC
BOOL CBCGPRibbonFloaty::ShowWithContextMenu ( int  x,
int  y,
HMENU  hMenu,
CWnd *  pWndOwner,
BOOL  bAutoDestroyMenu = TRUE 
)

Displays floaty along with context menu.

Returns
Returns TRUE if the context menu was displayed successfully; otherwise FALSE.

Use this function to display floaty along with context menu. Context menu is displayed below the floaty at constant offset 15 pixels.

Parameters
xSpecifies the horizontal position of the context menu in screen coordinates
ySpecifies the vertical position of the context menu in screen coordinates
hMenuHandle of the context menu to show.
pWndOwnerIdentifies the window which receives the messages from the context menu.
bAutoDestroyMenuTRUE to automatically destroy menu.