The ACCEL
structure defines an accelerator table entry.
FACCEL_ALT
: The ALT key is pressed.FACCEL_CTRL
: The CTRL key is pressed.FACCEL_SHIFT
: The SHIFT key is pressed.FACCEL_EXTENDED
: The key is an extended key.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
.