共用方式為


CMFCRibbonCategory::NotifyControlCommand

Delivers a WM_NOTIFY command message to all CMFCRibbonPanel elements in the CMFCRibbonCategory until the message is handled.

virtual BOOL NotifyControlCommand(
   BOOL bAccelerator,
   int nNotifyCode,
   WPARAM wParam,
   LPARAM lParam
);

Parameters

  • [in] bAccelerator
    TRUE if this command originated from an accelerator, or FALSE otherwise.

  • [in] nNotifyCode
    The notification code.

  • [in] wParam
    The WPARAM field of the message.

  • [in] lParam
    The LPARAM field of the message.

Return Value

Returns TRUE if the message was handled, or FALSE if not.

Requirements

Header: afxribboncategory.h

See Also

Reference

CMFCRibbonCategory Class

Hierarchy Chart