WaveEditClientDoc.cpp
上传用户:samlee1007
上传日期:2007-01-02
资源大小:123k
文件大小:2k
源码类别:

文件操作

开发平台:

Visual C++

  1. // WaveEditClientDoc.cpp : implementation of the CWaveEditClientDoc class
  2. //
  3. #include "stdafx.h"
  4. #include "WaveEditClient.h"
  5. #include "WaveEditClientDoc.h"
  6. #include "WaveEditClientView.h"
  7. #ifdef _DEBUG
  8. #define new DEBUG_NEW
  9. #undef THIS_FILE
  10. static char THIS_FILE[] = __FILE__;
  11. #endif
  12. /////////////////////////////////////////////////////////////////////////////
  13. // CWaveEditClientDoc
  14. IMPLEMENT_DYNCREATE(CWaveEditClientDoc, CDocument)
  15. BEGIN_MESSAGE_MAP(CWaveEditClientDoc, CDocument)
  16. //{{AFX_MSG_MAP(CWaveEditClientDoc)
  17. //}}AFX_MSG_MAP
  18. END_MESSAGE_MAP()
  19. BEGIN_DISPATCH_MAP(CWaveEditClientDoc, CDocument)
  20. //{{AFX_DISPATCH_MAP(CWaveEditClientDoc)
  21. DISP_FUNCTION(CWaveEditClientDoc, "SetResetTimer", SetResetTimer, VT_EMPTY, VTS_NONE)
  22. DISP_FUNCTION(CWaveEditClientDoc, "Testing", Testing, VT_EMPTY, VTS_NONE)
  23. //}}AFX_DISPATCH_MAP
  24. END_DISPATCH_MAP()
  25. static const IID IID_IWaveEditClient =
  26. { 0x618031c2, 0x6a68, 0x11d2, { 0xb4, 0xad, 0xde, 0xc1, 0xca, 0xfe, 0x5b, 0x54 } };
  27. BEGIN_INTERFACE_MAP(CWaveEditClientDoc, CDocument)
  28. INTERFACE_PART(CWaveEditClientDoc, IID_IWaveEditClient, Dispatch)
  29. END_INTERFACE_MAP()
  30. /////////////////////////////////////////////////////////////////////////////
  31. // CWaveEditClientDoc construction/destruction
  32. CWaveEditClientDoc::CWaveEditClientDoc()
  33. {
  34. EnableAutomation();
  35. AfxOleLockApp();
  36. }
  37. CWaveEditClientDoc::~CWaveEditClientDoc()
  38. {
  39. AfxOleUnlockApp();
  40. }
  41. BOOL CWaveEditClientDoc::OnNewDocument()
  42. {
  43. if (!CDocument::OnNewDocument())
  44. return FALSE;
  45. return TRUE;
  46. }
  47. /////////////////////////////////////////////////////////////////////////////
  48. // CWaveEditClientDoc serialization
  49. void CWaveEditClientDoc::Serialize(CArchive& ar)
  50. {
  51. if (ar.IsStoring())
  52. {
  53. }
  54. else
  55. {
  56. }
  57. }
  58. /////////////////////////////////////////////////////////////////////////////
  59. // CWaveEditClientDoc diagnostics
  60. #ifdef _DEBUG
  61. void CWaveEditClientDoc::AssertValid() const
  62. {
  63. CDocument::AssertValid();
  64. }
  65. void CWaveEditClientDoc::Dump(CDumpContext& dc) const
  66. {
  67. CDocument::Dump(dc);
  68. }
  69. #endif //_DEBUG
  70. /////////////////////////////////////////////////////////////////////////////
  71. // CWaveEditClientDoc commands
  72. void CWaveEditClientDoc::SetResetTimer() 
  73. {
  74. POSITION pos = GetFirstViewPosition();
  75. CWaveEditClientView* pView = (CWaveEditClientView*)GetNextView(pos);
  76. //AfxMessageBox("Here");
  77. //pView->KillTimer(1);
  78. }
  79. void CWaveEditClientDoc::Testing() 
  80. {
  81. //AfxMessageBox("TESTING()");
  82. }