📄 matrixdoc.cpp
字号:
// MatrixDoc.cpp : implementation of the CMatrixDoc class
//
#include "stdafx.h"
#include "Matrix.h"
#include "MatrixDoc.h"
#include "Matrix1.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMatrixDoc
IMPLEMENT_DYNCREATE(CMatrixDoc, CDocument)
BEGIN_MESSAGE_MAP(CMatrixDoc, CDocument)
//{{AFX_MSG_MAP(CMatrixDoc)
ON_COMMAND(IDD_DIALOG1, OnDialog1)
ON_UPDATE_COMMAND_UI(IDD_DIALOG1, OnUpdateDialog1)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CMatrixDoc construction/destruction
CMatrixDoc::CMatrixDoc()
{
// TODO: add one-time construction code here
}
CMatrixDoc::~CMatrixDoc()
{
}
BOOL CMatrixDoc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO: add reinitialization code here
// (SDI documents will reuse this document)
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CMatrixDoc serialization
void CMatrixDoc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
// TODO: add storing code here
}
else
{
// TODO: add loading code here
}
}
/////////////////////////////////////////////////////////////////////////////
// CMatrixDoc diagnostics
#ifdef _DEBUG
void CMatrixDoc::AssertValid() const
{
CDocument::AssertValid();
}
void CMatrixDoc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CMatrixDoc commands
void CMatrixDoc::OnDialog1()
{
// TODO: Add your command handler code here
CMatrix Dlg;
Dlg.DoModal();
}
void CMatrixDoc::OnUpdateDialog1(CCmdUI* pCmdUI)
{
// TODO: Add your command update UI handler code here
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -