wmp4playerDoc.cpp
资源名称:NETVIDEO.rar [点击查看]
上传用户:sun1608
上传日期:2007-02-02
资源大小:6116k
文件大小:2k
源码类别:
流媒体/Mpeg4/MP4
开发平台:
Visual C++
- // 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 - OnNewDocumentn");
- 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 - serializen");
- 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();
- }