📄 c3qdoc.cpp
字号:
// C3QDoc.cpp : implementation of the CC3QDoc class
//
#include "stdafx.h"
#include "C3Q.h"
#include "C3QDoc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CC3QDoc
IMPLEMENT_DYNCREATE(CC3QDoc, CDocument)
BEGIN_MESSAGE_MAP(CC3QDoc, CDocument)
//{{AFX_MSG_MAP(CC3QDoc)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CC3QDoc construction/destruction
CC3QDoc::CC3QDoc()
{
// TODO: add one-time construction code here
}
CC3QDoc::~CC3QDoc()
{
}
BOOL CC3QDoc::OnNewDocument()
{
// if (!CDocument::OnNewDocument())
// return FALSE;
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CC3QDoc serialization
void CC3QDoc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
// TODO: add storing code here
}
else
{
// TODO: add loading code here
}
}
/////////////////////////////////////////////////////////////////////////////
// CC3QDoc diagnostics
#ifdef _DEBUG
void CC3QDoc::AssertValid() const
{
CDocument::AssertValid();
}
void CC3QDoc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CC3QDoc commands
void CC3QDoc::DeleteContents()
{
// TODO: Add your specialized code here and/or call the base class
//CDocument::DeleteContents();
}
BOOL CC3QDoc::OnOpenDocument(LPCTSTR lpszPathName)
{
if (!CDocument::OnOpenDocument(lpszPathName))
return FALSE;
// TODO: Add your specialized creation code here
m_vrcontrol.SetSceneFile( lpszPathName );
return TRUE;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -