Condividi tramite


CMFCRibbonMiniToolBar::ShowWithContextMenu

Displays the mini toolbar together with a context menu.

BOOL ShowWithContextMenu(
    int x,
    int y,
    UINT uiMenuResID,
    CWnd* pWndOwner 
);

Parameters

  • [in] x
    Specifies the horizontal position of the context menu in screen coordinates.

  • [in] y
    Specifies the vertical position of the context menu in screen coordinates.

  • [in] uiMenuResID
    Specifies the resource ID of the context menu to display.

  • [in] pWndOwner
    Identifies the window which receives messages from the context menu.

Return Value

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

Remarks

Use this function to display a mini toolbar that has a context menu. The context menu is positioned 15 pixels below the mini toolbar.

Requirements

Header: afxRibbonMiniToolBar.h

See Also

Reference

CMFCRibbonMiniToolBar Class

Hierarchy Chart