ACCEL Structure

Structure

The ACCEL structure defines an accelerator table entry.

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

Members

Remarks

Accelerator tables are resource objects that contain information about the keystrokes that are recognized as commands by an application. When the user presses an accelerator key, the system sends a WM_COMMAND message to the owner window of the accelerator table.

The fVirt member combines flags using the bitwise OR operator. For example, to specify CTRL+SHIFT+A, you would combine FACCEL_CTRL, FACCEL_SHIFT, and the ASCII value for 'A'.

You can create an accelerator table using a resource editor or programmatically using functions like CreateAcceleratorTable.

See Also