The ACCEL structure defines an accelerator key used in an accelerator table.
typedef struct tagACCEL { // accl
BYTE fVirt;
WORD key;
WORD cmd;
} ACCEL;
Value | Meaning |
---|---|
FALT | The alt key must be held down when the accelerator key is pressed. |
FCONTROL | The ctrl key must be held down when the accelerator key is pressed. |
FNOINVERT | Specifies that no top-level menu item is highlighted when the accelerator is used. If this flag is not specified, a top-level menu item will be highlighted, if possible, when the accelerator is used. |
FSHIFT | The shift key must be held down when the accelerator key is pressed. |
FVIRTKEY | The key member specifies a virtual-key code. If this flag is not specified, key is assumed to specify an ASCII character code. |
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Requires version 1.0 or later.
Header: Declared in winuser.h.
Keyboard Accelerators Overview, Keyboard Accelerator Structures, WM_COMMAND, WM_SYSCOMMAND