⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 plcdoc.cpp

📁 可以编辑PLC梯形图
💻 CPP
字号:
// PLCDoc.cpp : implementation of the CPLCDoc class
//

#include "stdafx.h"
#include "PLC.h"

#include "PLCDoc.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

extern int TotalY;
/////////////////////////////////////////////////////////////////////////////
// CPLCDoc

IMPLEMENT_DYNCREATE(CPLCDoc, CDocument)
//IMPLEMENT_SERIAL(CMyPart, CObject, 1)

BEGIN_MESSAGE_MAP(CPLCDoc, CDocument)
	//{{AFX_MSG_MAP(CPLCDoc)
		// NOTE - the ClassWizard will add and remove mapping macros here.
		//    DO NOT EDIT what you see in these blocks of generated code!
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CMyPart construction/destruction
CMyPart::CMyPart()
{
    
}
//---------------------------------------------------------------------------
/*
CMyPart::CMyPart()
{   
}
//----------------------------------------------------------------------------
CMyPart::~CMyPart()
{
}
//-----------------------------------------------------------------------------
void CMyPart::Serialize(CArchive& ar)
{
	if (ar.IsStoring())
	{
		// TODO: add storing code here
		ar<<(WORD)m_StartX<<(WORD)m_StartY<<(WORD)m_Code<<(WORD)m_Kind<<(WORD)m_Name;
	}
	else
	{
		// TODO: add loading code here
		ar>>(WORD&)m_StartX>>(WORD&)m_StartY>>(WORD&)m_Code>>(WORD&)m_Kind>>(WORD&)m_Name;
	}
}
*/
//------------------------------------------------------------------------------
// CPLCDoc construction/destruction

CPLCDoc::CPLCDoc()
{
	// TODO: add one-time construction code here

}

CPLCDoc::~CPLCDoc()
{
}

BOOL CPLCDoc::OnNewDocument()
{
	if (!CDocument::OnNewDocument())
		return FALSE;

	// TODO: add reinitialization code here
	// (SDI documents will reuse this document)

	return TRUE;
}



/////////////////////////////////////////////////////////////////////////////
// CPLCDoc serialization

void CPLCDoc::Serialize(CArchive& ar)
{
	if (ar.IsStoring())
	{
		// TODO: add storing code here
//		m_ObArray.Serialize(ar);
	}
	else
	{
		// TODO: add loading code here
//		m_ObArray.Serialize(ar);
	}
}

/////////////////////////////////////////////////////////////////////////////
// CPLCDoc diagnostics

#ifdef _DEBUG
void CPLCDoc::AssertValid() const
{
	CDocument::AssertValid();
}

void CPLCDoc::Dump(CDumpContext& dc) const
{
	CDocument::Dump(dc);
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CPLCDoc commands

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -