The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
This documentation is archived and is not being maintained.
ACCEL structure
Defines an accelerator key used in an accelerator table.
typedefstruct tagACCEL {
BYTE fVirt;
WORD key;
WORD cmd;
} ACCEL, *LPACCEL;
Members
fVirt
Type: BYTE
The accelerator behavior. This member can be one or more of the following values.
Value
Meaning
FALT
0x10
The ALT key must be held down when the accelerator key is pressed.
FCONTROL
0x08
The CTRL key must be held down when the accelerator key is pressed.
FNOINVERT
0x02
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. This attribute is obsolete and retained only for backward compatibility with resource files designed for 16-bit Windows.
FSHIFT
0x04
The SHIFT key must be held down when the accelerator key is pressed.
FVIRTKEY
TRUE
The key member specifies a virtual-key code. If this flag is not specified, key is assumed to specify a character code.
key
Type: WORD
The accelerator key. This member can be either a virtual-key code or a character code.
cmd
Type: WORD
The accelerator identifier. This value is placed in the low-order word of the wParam parameter of the WM_COMMAND or WM_SYSCOMMAND message when the accelerator is pressed.