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

📄 ncsimulasysdoc.cpp

📁 用VC++开发了一个数控加工的三维仿真程序
💻 CPP
字号:
// NCSimulaSysDoc.cpp : CNCSimulaSysDoc 类的实现
//

#include "stdafx.h"
#include "NCSimulaSys.h"

#include "NCSimulaSysDoc.h"
#include "NCSimulaSysView.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


// CNCSimulaSysDoc

IMPLEMENT_DYNCREATE(CNCSimulaSysDoc, CDocument)

BEGIN_MESSAGE_MAP(CNCSimulaSysDoc, CDocument)
END_MESSAGE_MAP()


// CNCSimulaSysDoc 构造/析构

CNCSimulaSysDoc::CNCSimulaSysDoc()
{
	// TODO: 在此添加一次性构造代码

}

CNCSimulaSysDoc::~CNCSimulaSysDoc()
{
}

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

	// TODO: 在此添加重新初始化代码
	// (SDI 文档将重用该文档)

	return TRUE;
}




// CNCSimulaSysDoc 序列化

void CNCSimulaSysDoc::Serialize(CArchive& ar)
{
	if (ar.IsStoring())
	{
		// TODO: 在此添加存储代码

	}
	else
	{
		// TODO: 在此添加加载代码
	}
	for (POSITION pos = GetFirstViewPosition (); pos != NULL;)
	{
		CNCSimulaSysView* pView = DYNAMIC_DOWNCAST (CNCSimulaSysView, GetNextView (pos));

		if (pView != NULL)
		{
			pView->SerializeRaw(ar);
		}
	}
}


// CNCSimulaSysDoc 诊断

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

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


// CNCSimulaSysDoc 命令

⌨️ 快捷键说明

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