WaveEditClientDoc.cpp
上传用户:samlee1007
上传日期:2007-01-02
资源大小:123k
文件大小:2k
- // WaveEditClientDoc.cpp : implementation of the CWaveEditClientDoc class
- //
- #include "stdafx.h"
- #include "WaveEditClient.h"
- #include "WaveEditClientDoc.h"
- #include "WaveEditClientView.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CWaveEditClientDoc
- IMPLEMENT_DYNCREATE(CWaveEditClientDoc, CDocument)
- BEGIN_MESSAGE_MAP(CWaveEditClientDoc, CDocument)
- //{{AFX_MSG_MAP(CWaveEditClientDoc)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- BEGIN_DISPATCH_MAP(CWaveEditClientDoc, CDocument)
- //{{AFX_DISPATCH_MAP(CWaveEditClientDoc)
- DISP_FUNCTION(CWaveEditClientDoc, "SetResetTimer", SetResetTimer, VT_EMPTY, VTS_NONE)
- DISP_FUNCTION(CWaveEditClientDoc, "Testing", Testing, VT_EMPTY, VTS_NONE)
- //}}AFX_DISPATCH_MAP
- END_DISPATCH_MAP()
- static const IID IID_IWaveEditClient =
- { 0x618031c2, 0x6a68, 0x11d2, { 0xb4, 0xad, 0xde, 0xc1, 0xca, 0xfe, 0x5b, 0x54 } };
- BEGIN_INTERFACE_MAP(CWaveEditClientDoc, CDocument)
- INTERFACE_PART(CWaveEditClientDoc, IID_IWaveEditClient, Dispatch)
- END_INTERFACE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CWaveEditClientDoc construction/destruction
- CWaveEditClientDoc::CWaveEditClientDoc()
- {
- EnableAutomation();
- AfxOleLockApp();
- }
- CWaveEditClientDoc::~CWaveEditClientDoc()
- {
- AfxOleUnlockApp();
- }
- BOOL CWaveEditClientDoc::OnNewDocument()
- {
- if (!CDocument::OnNewDocument())
- return FALSE;
- return TRUE;
- }
- /////////////////////////////////////////////////////////////////////////////
- // CWaveEditClientDoc serialization
- void CWaveEditClientDoc::Serialize(CArchive& ar)
- {
- if (ar.IsStoring())
- {
- }
- else
- {
- }
- }
- /////////////////////////////////////////////////////////////////////////////
- // CWaveEditClientDoc diagnostics
- #ifdef _DEBUG
- void CWaveEditClientDoc::AssertValid() const
- {
- CDocument::AssertValid();
- }
- void CWaveEditClientDoc::Dump(CDumpContext& dc) const
- {
- CDocument::Dump(dc);
- }
- #endif //_DEBUG
- /////////////////////////////////////////////////////////////////////////////
- // CWaveEditClientDoc commands
- void CWaveEditClientDoc::SetResetTimer()
- {
- POSITION pos = GetFirstViewPosition();
- CWaveEditClientView* pView = (CWaveEditClientView*)GetNextView(pos);
- //AfxMessageBox("Here");
- //pView->KillTimer(1);
- }
- void CWaveEditClientDoc::Testing()
- {
- //AfxMessageBox("TESTING()");
- }