OpenGLMFCDoc.cpp
资源名称:OpenGLMFC.rar [点击查看]
上传用户:yanjing
上传日期:2022-06-12
资源大小:36k
文件大小:2k
源码类别:
OpenGL
开发平台:
Visual C++
- // OpenGLMFCDoc.cpp : implementation of the COpenGLMFCDoc class
- //
- #include "stdafx.h"
- #include "OpenGLMFC.h"
- #include "OpenGLMFCDoc.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // COpenGLMFCDoc
- IMPLEMENT_DYNCREATE(COpenGLMFCDoc, CDocument)
- BEGIN_MESSAGE_MAP(COpenGLMFCDoc, CDocument)
- //{{AFX_MSG_MAP(COpenGLMFCDoc)
- // 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()
- /////////////////////////////////////////////////////////////////////////////
- // COpenGLMFCDoc construction/destruction
- COpenGLMFCDoc::COpenGLMFCDoc()
- {
- // TODO: add one-time construction code here
- }
- COpenGLMFCDoc::~COpenGLMFCDoc()
- {
- }
- BOOL COpenGLMFCDoc::OnNewDocument()
- {
- if (!CDocument::OnNewDocument())
- return FALSE;
- // TODO: add reinitialization code here
- // (SDI documents will reuse this document)
- return TRUE;
- }
- /////////////////////////////////////////////////////////////////////////////
- // COpenGLMFCDoc serialization
- void COpenGLMFCDoc::Serialize(CArchive& ar)
- {
- if (ar.IsStoring())
- {
- // TODO: add storing code here
- }
- else
- {
- // TODO: add loading code here
- }
- }
- /////////////////////////////////////////////////////////////////////////////
- // COpenGLMFCDoc diagnostics
- #ifdef _DEBUG
- void COpenGLMFCDoc::AssertValid() const
- {
- CDocument::AssertValid();
- }
- void COpenGLMFCDoc::Dump(CDumpContext& dc) const
- {
- CDocument::Dump(dc);
- }
- #endif //_DEBUG
- /////////////////////////////////////////////////////////////////////////////
- // COpenGLMFCDoc commands
English
