📄 ambulantplayerdoc.cpp
字号:
// AmbulantPlayerDoc.cpp : implementation of the CAmbulantPlayerDoc class//#include "stdafx.h"#include "AmbulantPlayer.h"#include "AmbulantPlayerDoc.h"#include "AmbulantPlayerView.h"#ifdef _DEBUG#define new DEBUG_NEW#undef THIS_FILEstatic char THIS_FILE[] = __FILE__;#endif/////////////////////////////////////////////////////////////////////////////// CAmbulantPlayerDocIMPLEMENT_DYNCREATE(CAmbulantPlayerDoc, CDocument)BEGIN_MESSAGE_MAP(CAmbulantPlayerDoc, CDocument) //{{AFX_MSG_MAP(CAmbulantPlayerDoc) // NOTE - the ClassWizard will add and remove mapping macros here. // DO NOT EDIT what you see in these blocks of generated code! //}}AFX_MSG_MAPEND_MESSAGE_MAP()/////////////////////////////////////////////////////////////////////////////// CAmbulantPlayerDoc construction/destructionCAmbulantPlayerDoc::CAmbulantPlayerDoc(){ // TODO: add one-time construction code here}CAmbulantPlayerDoc::~CAmbulantPlayerDoc(){}BOOL CAmbulantPlayerDoc::OnNewDocument(){ if (!CDocument::OnNewDocument()) return FALSE; // TODO: add reinitialization code here // (SDI documents will reuse this document) return TRUE;}/////////////////////////////////////////////////////////////////////////////// CAmbulantPlayerDoc serializationvoid CAmbulantPlayerDoc::Serialize(CArchive& ar){ if (ar.IsStoring()) { // TODO: add storing code here } else { // TODO: add loading code here }}/////////////////////////////////////////////////////////////////////////////// CAmbulantPlayerDoc diagnostics#ifdef _DEBUGvoid CAmbulantPlayerDoc::AssertValid() const{ CDocument::AssertValid();}void CAmbulantPlayerDoc::Dump(CDumpContext& dc) const{ CDocument::Dump(dc);}#endif //_DEBUG/////////////////////////////////////////////////////////////////////////////// CAmbulantPlayerDoc commandsBOOL CAmbulantPlayerDoc::OnOpenDocument(LPCTSTR lpszPathName) { //if (!CDocument::OnOpenDocument(lpszPathName)) // return FALSE; POSITION pos = GetFirstViewPosition(); if(pos != NULL) { CView* pView = GetNextView(pos); ASSERT_VALID(pView); ((CAmbulantPlayerView*)pView)->SetMMDocument(lpszPathName); } return TRUE;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -