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.

38 lines
839 B

  1. /*--------------------------------------------------------------------------*
  2. *
  3. * Microsoft Windows
  4. * Copyright (C) Microsoft Corporation, 1992 - 00
  5. *
  6. * File: kbdnav.h
  7. *
  8. * Contents: Interface file for CKeyboardNavDelayTimer
  9. *
  10. * History: 4-May-2000 jeffro Created
  11. *
  12. *--------------------------------------------------------------------------*/
  13. #pragma once
  14. #ifdef DBG
  15. extern CTraceTag tagKeyboardNavDelay;
  16. #endif
  17. class CKeyboardNavDelayTimer
  18. {
  19. public:
  20. typedef std::map<UINT_PTR, CKeyboardNavDelayTimer*> CTimerMap;
  21. CKeyboardNavDelayTimer();
  22. ~CKeyboardNavDelayTimer();
  23. SC ScStartTimer();
  24. SC ScStopTimer();
  25. virtual void OnTimer() = 0;
  26. private:
  27. static VOID CALLBACK TimerProc(HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime);
  28. static CTimerMap& GetTimerMap();
  29. private:
  30. UINT_PTR m_nTimerID;
  31. };