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.

47 lines
1.1 KiB

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. //----------------------------------------------------------------------------
  2. // Laser Guard Ltd.
  3. // Copyright � 2000-2002. All Rights Reserved.
  4. // Version 1.0 27/03/2000
  5. // Last modification: 02/06/2001
  6. // Project Intruder Position Indicator
  7. // SUBSYSTEM: LGS rotation indicator
  8. // FILE: Indicator.h
  9. // AUTHOR: Chizhevskiy Sergey
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of class CIndicator
  13. //----------------------------------------------------------------------------
  14. #ifndef __INDICATOR__H__INCLUDED__
  15. #define __INDICATOR__H__INCLUDED__
  16. class CIndicator {
  17. public:
  18. CIndicator();
  19. ~CIndicator();
  20. public:
  21. BOOL Create(HWND hParent, LPPOINT pPoint, INT nRadius, INT nMaxSteps);
  22. void Step(INT nStep);
  23. HWND GetSafeHwnd() { return m_hWnd; }
  24. private:
  25. void CreateBitmaps(HDC hDC);
  26. private:
  27. HBITMAP *m_phBitmaps;
  28. HBITMAP *m_phOldBitmaps;
  29. HBITMAP m_hBitmap;
  30. HBITMAP m_hBitmapNC;
  31. HBITMAP m_hOldBitmapNC;
  32. HWND m_hWnd;
  33. HDC m_hMemDCNC;
  34. HDC *m_phMemDCs;
  35. INT m_Radius;
  36. INT m_MaxSteps;
  37. HDC m_hMemDC;
  38. };
  39. #endif