共用方式為


CMFCRibbonBaseElement::PostMenuCommand

Closes the pop-up menu for the ribbon element and sends a close message to the parent menu.

void PostMenuCommand(
   UINT uiCmdId
);

Parameters

  • [in] uiCmdId
    The parameter is not used.

Remarks

The close message is only sent if the ribbon element is located on a pop-up menu.

Requirements

Header: afxbaseribbonelement.h

See Also

Reference

CMFCRibbonBaseElement Class

Hierarchy Chart