Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.6 KiB

  1. /*
  2. * Microsoft Confidential
  3. * Copyright (C) Microsoft Corporation 1992,1993
  4. * All Rights Reserved.
  5. *
  6. *
  7. * PIFHOTP.H
  8. * Private PIFMGR include file
  9. *
  10. * History:
  11. * Created 22-Mar-1993 2:58pm by Jeff Parsons
  12. */
  13. #ifdef OLD_HOTKEY_GOOP
  14. #define CLASS_PIFHOTKEY TEXT("PIFHotKey")
  15. #define WM_SETPIFHOTKEY (WM_USER+0)
  16. #define WM_GETPIFHOTKEY (WM_USER+1)
  17. #define HOTINFO_NEW 0x0001
  18. #define HOTINFO_EDIT 0x0002
  19. #define HOTINFO_COMPLETE 0x0004
  20. typedef struct HOTINFO { /* hi */
  21. HWND hwnd; //
  22. HWND hDlg; //
  23. HOTKEY hk; //
  24. HOTKEY hkTmp; //
  25. HOTKEY hkInit; //
  26. int flags; // see HOTINFO_*
  27. TCHAR cbText; //
  28. TCHAR szText[80]; //
  29. } HOTINFO;
  30. typedef HOTINFO *PHOTINFO;
  31. typedef HOTINFO *LPHOTINFO;
  32. /* XLATOFF */
  33. #define ALT_LPARAM ((DWORD)((DWORD)(MapVirtualKey(VK_MENU,0)) << 16))
  34. #define CTRL_LPARAM ((DWORD)((DWORD)(MapVirtualKey(VK_CONTROL,0)) << 16))
  35. #define SHIFT_LPARAM ((DWORD)((DWORD)(MapVirtualKey(VK_SHIFT,0)) << 16))
  36. /* XLATON */
  37. /*
  38. * Internal function prototypes
  39. */
  40. BOOL LoadGlobalHotKeyEditData(void);
  41. void FreeGlobalHotKeyEditData(void);
  42. long HotKeyWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  43. void SetHotKeyCaret(PHOTINFO phi);
  44. void ChangeHotKey(PHOTINFO phi);
  45. void SetHotKeyText(PHOTINFO phi, PHOTKEY phk);
  46. void SetHotKeyLen(PHOTINFO phi);
  47. void SetHotKeyState(PHOTINFO phi, WORD keyid, LONG lParam);
  48. #endif /* OLD_HOTKEY_GOOP */