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.

66 lines
1.4 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: EventWnd.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of EventWnd.h
  13. //----------------------------------------------------------------------------
  14. #ifndef __EVENT__WND__H__INCLUDED__
  15. #define __EVENT__WND__H__INCLUDED__
  16. #include "EventQueue.h"
  17. #include "Profile.h"
  18. class CEventWnd
  19. {
  20. public:
  21. CEventWnd();
  22. virtual ~CEventWnd();
  23. public:
  24. BOOL Create( BOOL bDebug, HWND hParent, INT x, INT y, INT cx, INT cy, CProfile *pProfile );
  25. void Destroy();
  26. public:
  27. void AddTarget(TARGET_DESCRIPTION& td);
  28. void AddText(LPCTSTR pText);
  29. void Reset();
  30. void SetDebugMode(BOOL fDebug) { m_bDebug = fDebug; }
  31. private:
  32. LRESULT OnDestroy( WPARAM, LPARAM );
  33. LRESULT OnPaint( WPARAM, LPARAM );
  34. LRESULT OnSize( WPARAM, LPARAM );
  35. private:
  36. void OnDraw( HDC );
  37. private:
  38. static LRESULT CALLBACK WindowProc_( HWND, UINT, WPARAM, LPARAM );
  39. virtual LRESULT WindowProc( UINT, WPARAM, LPARAM );
  40. private:
  41. HWND m_hWnd;
  42. private:
  43. HDC m_hMemDC;
  44. HBITMAP m_hMemBitmap;
  45. HFONT m_hMemFont;
  46. private:
  47. BOOL m_bEnable;
  48. BOOL m_bDebug;
  49. CProfile *m_pProfile;
  50. private:
  51. HDC m_hIconsDC;
  52. HBITMAP m_hIconsBitmap;
  53. };
  54. #endif