共用方式為


CMFCAcceleratorKey::SetAccelerator

Sets the shortcut key for the CMFCAcceleratorKey object.

void SetAccelerator(
   LPACCEL lpAccel 
);

Parameters

  • [in] lpAccel
    A pointer to a shortcut key.

Remarks

Use this method to set the shortcut key for a CMFCAcceleratorKey if you did not provide a shortcut key when you created the CMFCAcceleratorKey.

Requirements

Header: afxacceleratorkey.h

See Also

Reference

CMFCAcceleratorKey Class

Hierarchy Chart