typedef struct tagACCEL { /* accl */
BYTE fVirt;
WORD key;
WORD cmd;
} ACCEL, *LPACCEL;
The ACCEL structure defines an accelerator key used in an accelerator table.
fVirt
Specifies the accelerator flags. This member can be a combination of the following values:
Value | Meaning |
FALT | The ALT key must be held down when the accelerator key is pressed. |
FCONTROL | The CONTROL 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, the key is assumed to specify an ASCII character code. |
key
Specifies the accelerator key. This member can be either a virtual-key code or an ASCII character code.
cmd
Specifies the accelerator identifier. This value is placed in the high 16 bits of the wParam parameter of the WM_COMMAND or WM_SYSCOMMAND message when the accelerator is pressed.
WM_COMMAND, WM_SYSCOMMAND