Leaked source code of windows server 2003
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.

75 lines
1.7 KiB

  1. /*++
  2. Copyright (C) 1996-1999 Microsoft Corporation
  3. Module Name:
  4. timerng.h
  5. Abstract:
  6. <abstract>
  7. --*/
  8. #ifndef _TIMERNG_H_
  9. #define _TIMERNG_H_
  10. #include "intrvbar.h"
  11. class CTimeRange
  12. {
  13. friend LRESULT APIENTRY TimeRangeWndProc (
  14. HWND hWnd,
  15. UINT uiMsg,
  16. WPARAM wParam,
  17. LPARAM lParam
  18. );
  19. private:
  20. HWND m_hWnd;
  21. PCIntervalBar m_pIntrvBar;
  22. HFONT m_hFont ;
  23. LONGLONG m_llBegin;
  24. LONGLONG m_llEnd;
  25. LONGLONG m_llStart;
  26. LONGLONG m_llStop;
  27. INT m_yFontHeight ;
  28. INT m_xMaxTimeWidth ;
  29. INT m_xBegin ;
  30. INT m_xEnd ;
  31. RECT m_rectStartDate ;
  32. RECT m_rectStartTime ;
  33. RECT m_rectStopDate ;
  34. RECT m_rectStopTime ;
  35. INT m_iCurrentStartPos ;
  36. INT m_iCurrentStopPos ;
  37. INT MaxTimeWidth ( HDC hDC );
  38. void DrawBeginEnd ( HDC hDC );
  39. void DrawStartStop ( HDC hDC );
  40. void OnSize ( INT xWidth, INT yHeight );
  41. public:
  42. CTimeRange ( HWND hWnd );
  43. ~CTimeRange ( void );
  44. BOOL Init ( void );
  45. void SetBeginEnd (LONGLONG llBegin, LONGLONG llEnd);
  46. void SetStartStop ( LONGLONG llStart, LONGLONG llStop );
  47. LONGLONG GetStart ( void ) { return m_llStart; }
  48. LONGLONG GetStop ( void ) { return m_llStop; }
  49. };
  50. typedef CTimeRange *PCTimeRange;
  51. BOOL RegisterTimeRangeClass (void) ;
  52. #endif