Microsoft Windows CE 3.0  

ACCEL

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

This structure defines an accelerator key used in an accelerator table.

typedef
struct
tagACCEL
{
BYTE
fVirt
;
WORD
key
;
WORD
cmd
;
WORD
pad
;
}
ACCEL;

Members

fVirt
Specifies the accelerator flags. It can be a combination of the following values:
Value Description
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 keymember specifies a virtual-key code. If this flag is not specified, keyis 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 low-order word of the wParamparameter of the WM_COMMANDor WM_SYSCOMMANDmessage when the accelerator is pressed.
pad
Reserved member that creates a WORD of padding between accelerator table entries.

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 1.0 and later Winuser.h    
Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

WM_COMMAND, WM_SYSCOMMAND, CreateAcceleratorTable