📄 realevview.h
字号:
// RealEvView.h : interface of the CRealEvView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_REALEVVIEW_H__31B5C577_450F_4A88_A229_238D856FE063__INCLUDED_)
#define AFX_REALEVVIEW_H__31B5C577_450F_4A88_A229_238D856FE063__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "Afxmt.h"
#include "XListCtrl.h"
#include "evtdb.h"
#include "listctrlprint.h"
#include "msgWnd.h"
#include "realevdoc.h"
#include "DiaWarnSet.h"
#include "DlgHelp.h"
class CRealEvView : public CFormView
{
protected: // create from serialization only
CRealEvView();
DECLARE_DYNCREATE(CRealEvView)
public:
bool m_fist;
int m_bChg;
evtdb m_evtdb;
bool m_bdbInitialed;
bool m_bLastIsShow ;
CWinThread* pThread;
CWinThread* pThreadPrint;//2004.6.30 zjh
CRect rectUpdate;
char m_updeF;
CString str ;
char dt[128];
int m_lenList;
COLORREF crBackG ;
bool Is_Soe;
bool Is_evtnew;
CCriticalSection m_EventCS; //新事件同步对象
//{{AFX_DATA(CRealEvView)
enum { IDD = IDD_REALEV_FORM };
CXListCtrl m_lsEvent;
//}}AFX_DATA
// Attributes
public:
CRealEvDoc* GetDocument();
void InitDropList();
void InitListCtrl();
void UpdateWarn();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CRealEvView)
public:
virtual void OnPrepareDC(CDC* pDC, CPrintInfo* pInfo = NULL);
virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual void OnInitialUpdate(); // called first time after construct
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
//}}AFX_VIRTUAL
afx_msg void OnSelchangeCombo();//响应CBN_SELCHANGE消息的函数
afx_msg void OnCheckAll(WPARAM w,LPARAM p);
afx_msg void OnCheck(WPARAM w,LPARAM p);
afx_msg void OnUpdateINDICATOR_NAME(CCmdUI* pCmdUI);
afx_msg void OnUpdateINDICATOR_NAME1(CCmdUI* pCmdUI);
//MENU COMMAND of the WndMsg
afx_msg void OnAck();
afx_msg void OnAckAll();
afx_msg void OnBrowse(WPARAM w,LPARAM p);
afx_msg void OnExit();
afx_msg void OnHideMsgWnd();
afx_msg void OnDbClickMsgWnd(WPARAM w,LPARAM p);
// Implementation
public:
// bool InitConfigData();
virtual ~CRealEvView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CRealEvView)
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnColor();
afx_msg void OnEvtTypeConfig();
afx_msg void OnConfirm();
afx_msg void OnDisOrd();
afx_msg void OnOrd();
afx_msg void OnSelectNew();
afx_msg void OnUpdateSelectNew(CCmdUI* pCmdUI);
afx_msg void OnFilePrint();
afx_msg void OnFilePrintPreview();
afx_msg void OnPrintNewEvent();
afx_msg void OnUpdatePrintNewEvent(CCmdUI* pCmdUI);
afx_msg void OnShowMsgWnd();
afx_msg void OnUpdateShowMsgWnd(CCmdUI* pCmdUI);
afx_msg void OnShapeRect();
afx_msg void OnShapeEllipse();
afx_msg void OnBrowse();
afx_msg void OnVoice();
afx_msg void OnUpdateVoice(CCmdUI* pCmdUI);
afx_msg void OnAlarmSet();
afx_msg void OnUpdateOrd(CCmdUI* pCmdUI);
afx_msg void OnUpdateDisOrd(CCmdUI* pCmdUI);
afx_msg void OnUpdateSetOptinfo(CCmdUI* pCmdUI);
afx_msg void OnUpdateSetOptshow(CCmdUI* pCmdUI);
afx_msg void OnSetHelp();
public:
afx_msg void OnClose();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
CListCtrlPrint* m_pPreviewList;
enum Direct{up,down}m_direct;
bool m_bManulUpdate;
bool m_bShow;
CComboBox* m_pCombo;
// CMsgWnd * m_pWndMsg;
CString *m_pNames;
WORD *m_pTypes;
COLORREF *m_pColors;
int m_nTypeCounts;
};
#ifndef _DEBUG // debug version in RealEvView.cpp
inline CRealEvDoc* CRealEvView::GetDocument()
{ return (CRealEvDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_REALEVVIEW_H__31B5C577_450F_4A88_A229_238D856FE063__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -