📄 operatview.h
字号:
// OperatView.h : interface of the COperatView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_OPERATVIEW_H__9D972C0D_3B57_11D3_9DDD_B194E5E89131__INCLUDED_)
#define AFX_OPERATVIEW_H__9D972C0D_3B57_11D3_9DDD_B194E5E89131__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
#include "DataType.h"
#include "global.h"
#include "MSComm.h"
#include "bar.h"
#include "AlarmDynamicDisp.h"
class COperatView : public CView
{
protected: // create from serialization only
COperatView();
DECLARE_DYNCREATE(COperatView)
// Attributes
public:
COperatDoc* GetDocument();
CAlarmDynamicDisp m_nAlarmDynamicDisp;
CSliderCtrl m_trackbar[16];
short subFace; //0,main 1,plate 2,Form 3 Curve
CFont m_titfont,m_LxlFont,m_LxlFont2,m_TableFont,m_ChartFont;
float ftw;
CRect m_crect,m_Alrm_Rect,m_client;
CBrush *m_Plate_Brush;
short m_FromBoiler_Add[4],m_FromBoiler_Ch[4],m_FromBoiler_Count;
short m_nHistTimeCout;
BOOL m_bAlarmProcessing;
// CMSComm m_Comm;
// Operations
public:
void GetPlateFile(void);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(COperatView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual BOOL PreTranslateMessage(MSG* pMsg);
virtual void OnInitialUpdate();
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
void Def_OnLButtonUp();
CRect m_Rect[MAX_PAGE_NUM];
CButton m_Button[MAX_PAGE_NUM];
DWORD m_Button_ID[MAX_PAGE_NUM];
CButton m_cSysButton;
short m_Chart5_Flag;
void Def_SetSystemTime(void);
void Def_Init_FlowChart();
void Def_DrawDynamicFlowChart(CDC *pDC,int nIndex);
void Def_DrawStaticFlowChart(CDC *pDC,int nIndex);
void Def_Draw_SwitchDynamicData(CDC *pDC);
void Def_Draw_SwitchStaticData(CDC *pDC);
void Def_Draw_PlateDynamicData(CDC *pDC);
void Def_Draw_PlateStaticData(CDC *pDC);
void Def_Draw_AnavalGrid(CDC *pDC);
void Def_Draw_AnavalDynamicData(CDC* pDC);
void Def_Draw_AnavalStaticData(CDC* pDC);
void Def_Init_FormData();
void GetSwitchFile();
void DrawPrompt(CDC* pDC);
void DrawAlram(CDC* pDC);
void DrawMenu(CDC* pDC);
void DrawPlateMenu(CDC* pDC);
void DrawPlateFace(CDC* pDC);
void DrawFormFace(CDC* pDC);
UINT data_y0,key_y0,prompt_y0;
virtual ~COperatView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
Struc_Flow_Chart m_FlowChart1[POINT_COUNT_FLOW1],m_FlowChart2[POINT_COUNT_FLOW2];
Struc_Flow_Chart m_FlowChart3[POINT_COUNT_FLOW3],m_FlowChart4[POINT_COUNT_FLOW4];
Struc_Flow_Chart m_FlowChart5[POINT_COUNT_FLOW5],m_FlowChart6[POINT_COUNT_FLOW6];
Struc_Flow_Chart m_FlowChart7[POINT_COUNT_FLOW7];
// Struc_Tsi_Data m_Tsi_AlrmData[POINT_COUNT_FLOW5];
short m_xW, m_yH;
short curTask,curIndicate, menuNums,subCurve0;
short watchPointNums,BoilerPtNums,VaporPtNums,GeneratorPtNums;
short rows_Page;
short Glob_Grid_Left[8];
short Glob_Grid_LineHeight;
short alrmDisp,alrmDisp1;
short lampFlash,newAlarm,myAlarm[2];//add,channel
char fieldName[40];
char swOn[30][16],swOff[30][16];
time_t referTime; //参考时间
CRect NoYScaleArea;
CRect Glob_Grid_Rect;
CRect swRect[13];//lxl add for Draw Switch Dynamic Data 2000-4-17 use in Def_Draw_SwitchStatic(Dynamic)Data
CPen blackPen2,whitePen2,dotPen,grayPen230,grayPen120;
CBitmap lBitmap,swonBit,swoffBit,m_FlowChartBit[FLOW_CHART_COUNT];
CBitmap m_nGeneratorBitmap;
BITMAP lBMPstruct,swonBMP,swoffBMP,flowchartBMP[FLOW_CHART_COUNT];
CPoint Glob_Plate_Point[6]; // lxl add for Draw Plate Dynamic Data 2000-4-17 use in Def_Draw_PlateStatic(Dynamic)Data
PlateDisp plate_disp;
// Generated message map functions
protected:
//{{AFX_MSG(COperatView)
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnDestroy();
afx_msg void OnRButtonDblClk(UINT nFlags, CPoint point);
afx_msg void OnButton1();
afx_msg void OnButton2();
afx_msg void OnButton3();
afx_msg void OnButton4();
afx_msg void OnButton5();
afx_msg void OnButton6();
afx_msg void OnButton7();
afx_msg void OnButton8();
afx_msg void OnButton9();
afx_msg void OnButton10();
afx_msg void OnButton11();
afx_msg void OnButton12();
afx_msg void OnButton13();
afx_msg void OnButton14();
afx_msg void OnButton15();
afx_msg void OnButton16();
afx_msg void OnButton17();
afx_msg void OnButton18();
afx_msg void OnButton19();
afx_msg void OnButton20();
afx_msg LRESULT OnNewAlarm(WPARAM wParam,LPARAM lParam);
afx_msg LRESULT OnMaxAlarm(WPARAM wParam,LPARAM lParam);
afx_msg LRESULT OnEndAlarm(WPARAM wParam,LPARAM lParam);
afx_msg void OnClickDynamicGrid(NMHDR* pNMHDR, LRESULT* pResult);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
};
#ifndef _DEBUG // debug version in OperatView.cpp
inline COperatDoc* COperatView::GetDocument()
{ return (COperatDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_OPERATVIEW_H__9D972C0D_3B57_11D3_9DDD_B194E5E89131__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -