📄 txx4_9doc.cpp
字号:
// txx4_9Doc.cpp : implementation of the CTxx4_9Doc class
//
#include "stdafx.h"
#include "txx4_9.h"
#include "txx4_9Doc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CTxx4_9Doc
IMPLEMENT_DYNCREATE(CTxx4_9Doc, CDocument)
BEGIN_MESSAGE_MAP(CTxx4_9Doc, CDocument)
//{{AFX_MSG_MAP(CTxx4_9Doc)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CTxx4_9Doc construction/destruction
CTxx4_9Doc::CTxx4_9Doc()
{
// TODO: add one-time construction code here
plg.push_back(CPoint(400, 200));
plg.push_back(CPoint(400, 50));
plg.push_back(CPoint(550, 50));
plg.push_back(CPoint(550, 201));
plg.push_back(CPoint(401, 201));
plg.push_back(CPoint(401, 351));
plg.push_back(CPoint(250, 351));
plg.push_back(CPoint(250, 200));
}
CTxx4_9Doc::~CTxx4_9Doc()
{
}
BOOL CTxx4_9Doc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO: add reinitialization code here
// (SDI documents will reuse this document)
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CTxx4_9Doc serialization
void CTxx4_9Doc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
// TODO: add storing code here
}
else
{
// TODO: add loading code here
}
}
/////////////////////////////////////////////////////////////////////////////
// CTxx4_9Doc diagnostics
#ifdef _DEBUG
void CTxx4_9Doc::AssertValid() const
{
CDocument::AssertValid();
}
void CTxx4_9Doc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CTxx4_9Doc commands
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -