📄 plcview.h
字号:
// PLCView.h : interface of the CPLCView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_PLCVIEW_H__E3C582C0_D221_4AB3_B82A_E1DC430BE107__INCLUDED_)
#define AFX_PLCVIEW_H__E3C582C0_D221_4AB3_B82A_E1DC430BE107__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CPLCView : public CScrollView
{
protected: // create from serialization only
CPLCView();
DECLARE_DYNCREATE(CPLCView)
// Attributes
public:
CPLCDoc* GetDocument();
public:
CPoint PCusor;
CPen pen;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CPLCView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
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);
//}}AFX_VIRTUAL
// Implementation
public:
void DrawPLCtest(CDC* pDC);
void SetfileName(CString GetPathName);
int LadToInstr();
void ErrorOnIns(unsigned short line, unsigned short errNo);
void ErrorOnLad(unsigned short line, unsigned short errNo);
virtual ~CPLCView();
void DrawPart(CDC* pDC, unsigned short hor, char ver);
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CPLCView)
afx_msg void OnHor();
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnVer();
afx_msg void OnOpen();
afx_msg void OnClo();
afx_msg void OnSet();
afx_msg void OnReset();
afx_msg void OnOut();
afx_msg void OnDeletepart();
afx_msg void OnDeletever();
afx_msg void OnDeleteline();
afx_msg void OnInsertline();
afx_msg void OnEditline();
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnFileSaveAs();
afx_msg void OnFileOpen();
afx_msg void OnFileSave();
afx_msg void OnInsr();
afx_msg void OnLad();
afx_msg void OnTest();
afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnFileNew();
afx_msg void OnDestroy();
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in PLCView.cpp
inline CPLCDoc* CPLCView::GetDocument()
{ return (CPLCDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_PLCVIEW_H__E3C582C0_D221_4AB3_B82A_E1DC430BE107__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -