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.

99 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: ProgramSkin.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of ProgramSkin.h
  13. //----------------------------------------------------------------------------
  14. #ifndef __PROGRAM__SKIN__H__INCLUDED__
  15. #define __PROGRAM__SKIN__H__INCLUDED__
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif // _MSC_VER > 1000
  19. class CLgSkin
  20. {
  21. public:
  22. CLgSkin();
  23. virtual ~CLgSkin();
  24. public:
  25. typedef struct SKIN
  26. {
  27. HBITMAP hBitmap;
  28. RECT rect;
  29. }SKIN, *PSKIN;
  30. public:
  31. void Destroy();
  32. BOOL GetSkin( INT nSkinID, SKIN& skin );
  33. protected:
  34. typedef struct SKIN_INI
  35. {
  36. INT nID;
  37. LPCTSTR pSectionName;
  38. LPCTSTR pImageName;
  39. UINT uDefaultImage;
  40. LPCTSTR pRectName;
  41. RECT pDefaultRect;
  42. }SKIN_INI, *PSKIN_INI;
  43. protected:
  44. BOOL Load( PSKIN_INI pSkin, INT nSkinCount, LPCTSTR pIniFileName, HINSTANCE hInstance );
  45. private:
  46. PSKIN m_pSkin;
  47. INT m_nSkinCount;
  48. };
  49. class CProgramSkin :
  50. public CLgSkin
  51. {
  52. public:
  53. enum
  54. {
  55. SKIN_CONTROL = 0,
  56. SKIN_CONTROL_VIDEO = 1,
  57. SKIN_CONTROL_LOCATOR = 2,
  58. SKIN_CONTROL_SOUND_ON = 3,
  59. SKIN_CONTROL_SOUND_OFF = 4,
  60. SKIN_CONTROL_CLEAR = 5,
  61. SKIN_CONTROL_RESET = 6,
  62. SKIN_CONTROL_MASK = 7,
  63. SKIN_CONTROL_SENSITIVITY = 8,
  64. SKIN_CONTROL_PTZ = 9,
  65. SKIN_CONTROL_QUALITY = 10,
  66. SKIN_CONTROL_REPORT = 11,
  67. SKIN_CONTROL_PTZ_TILT = 12,
  68. SKIN_REPORT = 13,
  69. SKIN_REPORT_TREE = 14,
  70. SKIN_REPORT_LOCATOR = 15,
  71. SKIN_REPORT_TEXT = 16,
  72. SKIN_REPORT_IMAGE = 17,
  73. SKIN_REPORT_IMAGE_SLIDER = 18,
  74. SKIN_REPORT_PREVIEW = 19,
  75. SKIN_REPORT_PREVIEW_SLIDER = 20,
  76. SKIN_REPORT_DETECTION = 21,
  77. };
  78. public:
  79. BOOL Load( LPCTSTR pIniFileName, HINSTANCE hInstance );
  80. private:
  81. static const SKIN_INI c_pSkinIni[];
  82. static const INT c_nSkinIniCount;
  83. };
  84. #endif