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

📄 prints~1.cpp

📁 visual c++ 时尚编程百例 全部源代码
💻 CPP
字号:
// PrintsDoc.cpp : implementation of the CPrintsDoc class
//

#include "stdafx.h"
#include "Prints.h"

#include "PrintsDoc.h"
#include"SetRectNumDlg.h"

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

/////////////////////////////////////////////////////////////////////////////
// CPrintsDoc

IMPLEMENT_DYNCREATE(CPrintsDoc, CDocument)

BEGIN_MESSAGE_MAP(CPrintsDoc, CDocument)
	//{{AFX_MSG_MAP(CPrintsDoc)
	ON_COMMAND(ID_SETRECTNUM, OnSetrectnum)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CPrintsDoc construction/destruction

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

}

CPrintsDoc::~CPrintsDoc()
{
}

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

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

	return TRUE;
}



/////////////////////////////////////////////////////////////////////////////
// CPrintsDoc serialization

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

/////////////////////////////////////////////////////////////////////////////
// CPrintsDoc diagnostics

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

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

/////////////////////////////////////////////////////////////////////////////
// CPrintsDoc commands

void CPrintsDoc::OnSetrectnum() 
{
CSetRectNumDlg dlg;
dlg.m_nSetRectNum=m_nRectNum;
if(dlg.DoModal()==IDOK)
m_nRectNum=dlg.m_nSetRectNum;
UpdateAllViews(NULL);
	
}

⌨️ 快捷键说明

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