📄 rectview.h
字号:
#if !defined(AFX_RECTVIEW_H__5AE8F059_8A47_466C_9A3B_1B12BC93DDCD__INCLUDED_)
#define AFX_RECTVIEW_H__5AE8F059_8A47_466C_9A3B_1B12BC93DDCD__INCLUDED_
//#include "SerialPort.h"
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// RectView.h : header file
#include "RectButton.h"
//
/////////////////////////////////////////////////////////////////////////////
// CRectView view
class CRectView : public CView
{
public:
CRectView(); // protected constructor used by dynamic creation
virtual ~CRectView();
DECLARE_DYNCREATE(CRectView)
CString strColor;
static CPtrArray m_aRect;
static bool bCrash;
static bool bFresh;
static LONG LCx;
static LONG LCy;
CRect rect;
CPoint pLastpoint;
CPoint StartPt,EndPt;
CString strPoint;
int iStaCnt;//存放站点总数
CStringArray saStaNameAll;//存放站点名;
void DrawLine();
int ReadConfigStaCnt(int &iCntSta);//得到站点总数;
bool ReadConfigStaName(CStringArray &staName);
void Mydraw();
void DrawPic();
void Redraw();
BOOL ReadPeriod();
static UINT uiPeriod;//查询周期
LONG left;
LONG top;
LONG right;
LONG bottom;
int nCount;
int nFirst;
// CSerialPort m_Port;
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CRectView)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
virtual DROPEFFECT OnDragEnter(COleDataObject* pDataObject, DWORD dwKeyState, CPoint point);
virtual void Serialize(CArchive& ar);
virtual BOOL IsSelected(const CObject* pDocItem) const;
protected:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
virtual void DoDataExchange(CDataExchange* pDX);
virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
protected:
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
protected:
//{{AFX_MSG(CRectView)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
afx_msg void OnPaint();
afx_msg void OnSetFocus(CWnd* pOldWnd);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_RECTVIEW_H__5AE8F059_8A47_466C_9A3B_1B12BC93DDCD__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -