Old fashion design for PC-104
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.

73 lines
2.0 KiB

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. //----------------------------------------------------------------------------
  2. // Laser Guard Ltd.
  3. // Copyright � 2000-2002. All Rights Reserved.
  4. // Version 1.0 01/01/2000
  5. // Last modification: 13/04/2001
  6. // PROJECT:
  7. // SUBSYSTEM:
  8. // FILE: ClockWnd.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of ClockWnd.h
  13. //----------------------------------------------------------------------------
  14. #if !defined(AFX_CLOCKWND_H__A8474C81_8187_11D4_A1FB_00508B9DC668__INCLUDED_)
  15. #define AFX_CLOCKWND_H__A8474C81_8187_11D4_A1FB_00508B9DC668__INCLUDED_
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif // _MSC_VER > 1000
  19. // ClockWnd.h : header file
  20. //
  21. /////////////////////////////////////////////////////////////////////////////
  22. // CClockWnd window
  23. class CClockWnd : public CWnd
  24. {
  25. // Construction
  26. public:
  27. CClockWnd();
  28. CSize& GetActualSize() { return m_ActualSize; }
  29. // Attributes
  30. public:
  31. // Operations
  32. public:
  33. // Overrides
  34. // ClassWizard generated virtual function overrides
  35. //{{AFX_VIRTUAL(CClockWnd)
  36. public:
  37. virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
  38. //}}AFX_VIRTUAL
  39. // Implementation
  40. public:
  41. virtual ~CClockWnd();
  42. // Generated message map functions
  43. protected:
  44. //{{AFX_MSG(CClockWnd)
  45. afx_msg void OnPaint();
  46. afx_msg void OnTimer(UINT nIDEvent);
  47. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  48. afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
  49. //}}AFX_MSG
  50. DECLARE_MESSAGE_MAP()
  51. private:
  52. void PaintTime( CDC *pDC );
  53. INT m_nDigitType;
  54. CDC m_DigitsDC;
  55. CBitmap m_DigitsBitmap;
  56. CBitmap *m_pDigitsBitmapOld;
  57. CSize m_ActualSize;
  58. };
  59. /////////////////////////////////////////////////////////////////////////////
  60. //{{AFX_INSERT_LOCATION}}
  61. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  62. #endif // !defined(AFX_CLOCKWND_H__A8474C81_8187_11D4_A1FB_00508B9DC668__INCLUDED_)