共用方式為


CMFCRibbonBar::OnSysKeyDown

Called by the framework when the user presses the F10 key or holds down the ALT key and then presses another key.

BOOL OnSysKeyDown(
   CFrameWnd* pFrameWnd,
   WPARAM wParam,
   LPARAM lParam
);

Parameters

  • [in] pFrameWnd
    Pointer to the parent main frame window of the ribbon bar.

  • [in] wParam
    Virtual key code of the key being pressed.

  • [in] lParam
    Keyboard state flags when the key was pressed.

Return Value

TRUE if the keystroke event was processed; otherwise FALSE.

Requirements

Header: afxribbonbar.h

See Also

Reference

CMFCRibbonBar Class

Hierarchy Chart