//---------------------------------------------------------------------------- // Laser Guard Ltd. // Copyright © 2000-2002. All Rights Reserved. // Version 1.0 01/01/2000 // Last modification: 13/04/2001 // PROJECT: // SUBSYSTEM: // FILE: TroubleWnd.h // AUTHOR: Sergey Chizhevskiy // OVERVIEW // ~~~~~~~~ // Header file of TroubleWnd.h //---------------------------------------------------------------------------- #if !defined(AFX_TROUBLEWND_H__18C09119_87C4_11D4_A1F0_0010B55CB330__INCLUDED_) #define AFX_TROUBLEWND_H__18C09119_87C4_11D4_A1F0_0010B55CB330__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // TroubleWnd.h : header file // #include "..\DLIB\SensorArray.h" ///////////////////////////////////////////////////////////////////////////// // CTroubleWnd window struct TROUBLE { WORD type; DWORD data; COLORREF colors[2]; CHAR pCaption[64]; CHAR pText[256]; }; typedef TROUBLE* LPTROUBLE; //#define TROUBLE_SOCKET_CREATE 0 #define TROUBLE_BACKUP 1 #define TROUBLE_SM 2 #define TROUBLE_ECS 3 #define TROUBLE_SPRU 4 #define TROUBLE_GPRU_COMMAND 5 class CTroubleWnd : public CWnd { enum { BUFFER_GROW_AMOUNT = 256 }; // Construction public: CTroubleWnd(); // Attributes public: // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CTroubleWnd) public: virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL); //}}AFX_VIRTUAL // Implementation public: void Delete( WORD type, DWORD data ); void Add( WORD type, DWORD data, LPSTR pCaption, LPSTR pText, COLORREF color0, COLORREF color1 ); void Add( TROUBLE &trouble ); void Update(); void SetSensorArray( CSensorArray* pSensorArray ); virtual ~CTroubleWnd(); // Generated message map functions protected: //{{AFX_MSG(CTroubleWnd) afx_msg void OnTimer(UINT nIDEvent); afx_msg void OnPaint(); afx_msg void OnSize(UINT nType, int cx, int cy); afx_msg void OnLButtonDown(UINT nFlags, CPoint point); afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar); afx_msg void OnRButtonDown(UINT nFlags, CPoint point); //}}AFX_MSG DECLARE_MESSAGE_MAP() private: CPoint m_Shift; int m_nSize; void Paint( CDC *pDC ); CSensorArray *m_pSensorArray; BOOL m_bInverse; BOOL m_bRedraw; int m_nScrollPos; int m_nScrollPosMax; int m_nCount; int m_nCountRowVisibleMax; int m_nCountColMax; CZone** m_ppZones; CZone* m_pZone; int m_nSensor; struct OVERLAY { CDC DC; CBitmap Bitmap; CBitmap *pBitmapOld; CFont *pFontOld; CRect Rect; INT nOldBkMode; }m_Overlay; LPTROUBLE m_pTrouble; int m_nTroubleCount; int m_nTroubleBufferSize; }; ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_TROUBLEWND_H__18C09119_87C4_11D4_A1F0_0010B55CB330__INCLUDED_)