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.

44 lines
1.6 KiB

  1. /***************************************************************************/
  2. /* Functions Declaration */
  3. /***************************************************************************/
  4. void RedrawKeysOnLanguageChange();
  5. BOOL IsOneOfOurKey(HWND hwnd);
  6. void DoAllUp (HWND hwnd, BOOL sendchr);
  7. void DoButtonDOWN(HWND hwnd);
  8. void SendWord(LPCSTR lpszKeys);
  9. BOOL udfKeyUpProc(HWND khwnd, int keyname);
  10. void MakeClick(int what);
  11. void InvertColors(HWND hwnd, BOOL fForceUpdate);
  12. void ReturnColors(HWND hwnd, BOOL inval);
  13. void CALLBACK YourTimeIsOver(HWND hwnd, UINT uMsg,
  14. UINT_PTR idEvent, DWORD dwTime);
  15. void killtime(void);
  16. void Cursorover(void);
  17. void SetTimeControl(HWND hwnd);
  18. void PaintBucket(HWND hwnd);
  19. void CALLBACK Painttime(HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime);
  20. void SendChar(HWND hwndKey);
  21. int CharTrans(int index, BOOL *SkipSendkey);
  22. void ReDrawModifierKey(void);
  23. void Extra_Key(HWND hwnd, int index);
  24. void PaintLine(HWND hwnd, HDC hdc, RECT rect);
  25. void ReleaseAltCtrlKeys(void);
  26. BOOL IsModifierPressed(HWND hwndKey);
  27. #define MENUKEY_NONE 0
  28. #define MENUKEY_LEFT 1
  29. #define MENUKEY_RIGHT 2
  30. extern int g_nMenu; // holds menu key state
  31. extern BOOL g_fControlPressed; // TRUE if the CTRL key is down
  32. extern BOOL g_fDoingAltTab; // TRUE if LALT is down and TAB is being pressed
  33. static __inline BOOL LAltKeyPressed() { return g_nMenu == MENUKEY_LEFT; }
  34. static __inline BOOL LCtrlKeyPressed() { return g_fControlPressed; }
  35. static __inline BOOL DoingAltTab() { return g_fDoingAltTab; }
  36. void SetCapsLock(HWND hwnd);