wmp4playerdoc.cpp
来自「MPEG-4编解码的实现(包括MPEG4视音频编解码)」· 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_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CWmp4playerDoc
IMPLEMENT_DYNCREATE(CWmp4playerDoc, CDocument)
BEGIN_MESSAGE_MAP(CWmp4playerDoc, CDocument)
//{{AFX_MSG_MAP(CWmp4playerDoc)
ON_COMMAND(ID_FILE_CLOSE, OnFileClose)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CWmp4playerDoc construction/destruction
CWmp4playerDoc::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 serialization
void 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 _DEBUG
void CWmp4playerDoc::AssertValid() const
{
CDocument::AssertValid();
}
void CWmp4playerDoc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CWmp4playerDoc commands
void CWmp4playerDoc::OnFileClose()
{
// TODO: Add your command handler code here
theApp.StopSession();
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?