wmp4playerdoc.cpp
来自「网络MPEG4IP流媒体开发源代码」· C++ 代码 · 共 99 行
CPP
99 行
// wmp4playerDoc.cpp : implementation of the CWmp4playerDoc class//#include "stdafx.h"#include "wmp4player.h"#include "wmp4playerDoc.h"#ifdef _DEBUG#define new DEBUG_NEW#undef THIS_FILEstatic char THIS_FILE[] = __FILE__;#endif/////////////////////////////////////////////////////////////////////////////// CWmp4playerDocIMPLEMENT_DYNCREATE(CWmp4playerDoc, CDocument)BEGIN_MESSAGE_MAP(CWmp4playerDoc, CDocument) //{{AFX_MSG_MAP(CWmp4playerDoc) ON_COMMAND(ID_FILE_CLOSE, OnFileClose) //}}AFX_MSG_MAPEND_MESSAGE_MAP()/////////////////////////////////////////////////////////////////////////////// CWmp4playerDoc construction/destructionCWmp4playerDoc::CWmp4playerDoc(){ // TODO: add one-time construction code here}CWmp4playerDoc::~CWmp4playerDoc(){}BOOL CWmp4playerDoc::OnNewDocument(){ OutputDebugString("\nDocument - OnNewDocument\n"); if (theApp.m_mp4if == NULL) { this->SetTitle(""); } else this->SetTitle(theApp.m_current_playing);#if 0 if (!CDocument::OnNewDocument()) return FALSE;#endif // TODO: add reinitialization code here // (SDI documents will reuse this document) return TRUE;}/////////////////////////////////////////////////////////////////////////////// CWmp4playerDoc serializationvoid CWmp4playerDoc::Serialize(CArchive& ar){ OutputDebugString("\nDoc - serialize\n"); if (ar.IsStoring()) { // TODO: add storing code here } else { // TODO: add loading code here }}/////////////////////////////////////////////////////////////////////////////// CWmp4playerDoc diagnostics#ifdef _DEBUGvoid CWmp4playerDoc::AssertValid() const{ CDocument::AssertValid();}void CWmp4playerDoc::Dump(CDumpContext& dc) const{ CDocument::Dump(dc);}#endif //_DEBUG/////////////////////////////////////////////////////////////////////////////// CWmp4playerDoc commandsvoid CWmp4playerDoc::OnFileClose() { // TODO: Add your command handler code here theApp.StopSession();}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?