msos2.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
ACCEL (1.2)
Overview  Changes                                 Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINACCELERATORS
 
typedef struct _ACCEL {    /* acc */
    USHORT fs;
    USHORT key;
    USHORT cmd;
} ACCEL;
 
The ACCEL structure contains an accelerator key used in the ACCELTABLE
structure.
 
Field  Description
────────────────────────────────────────────────────────────────────────────
 
fs     Specifies the style of the accelerator.
 
       Style          Meaning
       ─────────────────────────────────────────────────────────────────────
       AF_ALT         The ALT key must be held down when the accelerator key
                      is pressed.
 
       AF_CHAR        The keystroke is a translated character, using the
                      code page for the accelerator table. This is the
                      default style.
 
       AF_CONTROL     The CTRL key must be held down when the accelerator
                      key is pressed.
 
       AF_HELP        The accelerator key generates a WM_HELP message
                      instead of a WM_COMMAND message.
 
       AF_LONEKEY     No other key was pressed while the accelerator key was
                      down. This style typically is used with the ALT key to
                      specify that simply pressing and releasing the ALT key
                      triggers the accelerator.
 
       AF_SCANCODE    The keystroke is an untranslated scan-code from the
                      keyboard.
 
       AF_SHIFT       The SHIFT key must be held down when the accelerator
                      key is pressed.
 
       AF_SYSCOMMAND  The accelerator key generates a WM_SYSCOMMAND message
                      instead of a WM_COMMAND message.
 
       AF_VIRTUALKEY  The keystroke is a virtual key──for example, the F1
                      key.
 
key    Specifies the accelerator key.
 
cmd    Specifies the value to be placed in the usCmd parameter of the
       WM_HELP, WM_COMMAND, or WM_SYSCOMMAND message.
 
See Also
 
ACCELTABLE, WM_COMMAND, WM_HELP, WM_SYSCOMMAND