Announcement

Collapse
No announcement yet.

Number Value of API Constant MOD_CONTROL

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Number Value of API Constant MOD_CONTROL

    Anybody know it?

    Also MOD_ALT and MOD_SHIFT. They are listed in API topics
    RegisterHotKey and WM_HOTKEY. They don't seem to be in any
    of these .inc files.

    Every day I love PowerBASIC more. Its the best!
    Steve

  • #2
    from winuser.h
    Code:
    #define MOD_ALT         0x0001
    #define MOD_CONTROL     0x0002
    #define MOD_SHIFT       0x0004
    #define MOD_WIN         0x0008
    
    
    #define IDHOT_SNAPWINDOW        (-1)    /* SHIFT-PRINTSCRN  */
    #define IDHOT_SNAPDESKTOP       (-2)    /* PRINTSCRN        */
    MCM
    Michael Mattias
    Tal Systems (retired)
    Port Washington WI USA
    [email protected]
    http://www.talsystems.com

    Comment


    • #3
      Hi Steve,

      It might good to point out that there are
      2 differents sets of equates, one for hotkey
      and one for normal keyboard operations.

      Note that value do not corespond between the two,
      for instance %HOTKEYF_SHIFT = 1 and %MOD_SHIFT = 4

      Code:
      For Hotkey in CommCtrl.inc -----------
       %HOTKEYF_SHIFT   = 1 
       %HOTKEYF_CONTROL = 2 
       %HOTKEYF_ALT     = 4
       %HOTKEYF_EXT     = 8
       
      For Keyboard in DDT.inc -------------
       %MOD_ALT                 = &H00000001
       %MOD_CONTROL             = &H00000002
       %MOD_SHIFT               = &H00000004
       %MOD_WIN                 = &H00000008
       %MOD_LEFT                = &H00008000
       %MOD_RIGHT               = &H00004000
       %MOD_ON_KEYUP            = &H00000800
       %MOD_IGNORE_ALL_MODIFIER = &H00000400
      -------------------------------------
      Last edited by Pierre Bellisle; 14 Mar 2008, 11:40 AM.

      Comment

      Working...
      X