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.

78 lines
2.1 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: 08/10/2003
  6. // PROJECT:
  7. // SUBSYSTEM:
  8. // FILE: PropertySPRUWnd.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of PropertySPRUWnd.h
  13. //----------------------------------------------------------------------------
  14. #if !defined(AFX_PropertySPRUWND_H__7BBE2C05_876E_11D4_A1FC_00508B9DC668__INCLUDED_)
  15. #define AFX_PropertySPRUWND_H__7BBE2C05_876E_11D4_A1FC_00508B9DC668__INCLUDED_
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif // _MSC_VER > 1000
  19. // PropertySPRUWnd.h : header file
  20. //
  21. #include "..\DLIB\SensorSPRU.h"
  22. class CPropertySPRUWnd : public CWnd
  23. {
  24. // Construction
  25. public:
  26. CPropertySPRUWnd();
  27. // Attributes
  28. public:
  29. // Operations
  30. public:
  31. // Overrides
  32. // ClassWizard generated virtual function overrides
  33. //{{AFX_VIRTUAL(CPropertySPRUWnd)
  34. public:
  35. virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
  36. //}}AFX_VIRTUAL
  37. // Implementation
  38. public:
  39. void SetSensor( CSensorSPRU *pSensor );
  40. virtual ~CPropertySPRUWnd();
  41. // Generated message map functions
  42. protected:
  43. //{{AFX_MSG(CPropertySPRUWnd)
  44. afx_msg void OnTimer(UINT nIDEvent);
  45. afx_msg void OnPaint();
  46. afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
  47. //}}AFX_MSG
  48. DECLARE_MESSAGE_MAP()
  49. private:
  50. BOOL m_bInverse;
  51. struct OVERLAY
  52. {
  53. CDC DC;
  54. CBitmap Bitmap;
  55. CBitmap *pBitmapOld;
  56. CDC TempDC;
  57. CBitmap *pTempBitmapOld;
  58. }m_Overlay;
  59. CSensorSPRU *m_pSensor;
  60. CRect m_Rect;
  61. BOOL m_bEraseBackground;
  62. };
  63. /////////////////////////////////////////////////////////////////////////////
  64. //{{AFX_INSERT_LOCATION}}
  65. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  66. #endif // !defined(AFX_PropertySPRUWND_H__7BBE2C05_876E_11D4_A1FC_00508B9DC668__INCLUDED_)