Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

117 lines
2.0 KiB

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name:
  4. FTMan
  5. File Name:
  6. FTDoc.cpp
  7. Abstract:
  8. Implementation of the CFTDocument class. It is the MFC document class for the FT Volume views
  9. Author:
  10. Cristian Teodorescu October 20, 1998
  11. Notes:
  12. Revision History:
  13. --*/
  14. #include "stdafx.h"
  15. #include "FTDoc.h"
  16. #include "FTManDef.h"
  17. #include "Item.h"
  18. #ifdef _DEBUG
  19. #define new DEBUG_NEW
  20. #undef THIS_FILE
  21. static char THIS_FILE[] = __FILE__;
  22. #endif
  23. /////////////////////////////////////////////////////////////////////////////
  24. // CFTDocument
  25. IMPLEMENT_DYNCREATE(CFTDocument, CDocument)
  26. BEGIN_MESSAGE_MAP(CFTDocument, CDocument)
  27. //{{AFX_MSG_MAP(CFTDocument)
  28. // NOTE - the ClassWizard will add and remove mapping macros here.
  29. // DO NOT EDIT what you see in these blocks of generated code!
  30. //}}AFX_MSG_MAP
  31. END_MESSAGE_MAP()
  32. /////////////////////////////////////////////////////////////////////////////
  33. // CFTDocument construction/destruction
  34. CFTDocument::CFTDocument()
  35. {
  36. // TODO: add one-time construction code here
  37. }
  38. CFTDocument::~CFTDocument()
  39. {
  40. }
  41. BOOL CFTDocument::OnNewDocument()
  42. {
  43. MY_TRY
  44. if (!CDocument::OnNewDocument())
  45. return FALSE;
  46. // TODO: add reinitialization code here
  47. // (SDI documents will reuse this document)
  48. CString strTitle;
  49. strTitle.LoadString(AFX_IDS_APP_TITLE);
  50. SetTitle( strTitle );
  51. return TRUE;
  52. MY_CATCH_REPORT_AND_RETURN_FALSE
  53. }
  54. /////////////////////////////////////////////////////////////////////////////
  55. // CFTDocument serialization
  56. void CFTDocument::Serialize(CArchive& ar)
  57. {
  58. if (ar.IsStoring())
  59. {
  60. // TODO: add storing code here
  61. }
  62. else
  63. {
  64. // TODO: add loading code here
  65. }
  66. }
  67. /////////////////////////////////////////////////////////////////////////////
  68. // CFTDocument diagnostics
  69. #ifdef _DEBUG
  70. void CFTDocument::AssertValid() const
  71. {
  72. CDocument::AssertValid();
  73. }
  74. void CFTDocument::Dump(CDumpContext& dc) const
  75. {
  76. CDocument::Dump(dc);
  77. }
  78. #endif //_DEBUG
  79. /////////////////////////////////////////////////////////////////////////////
  80. // CFTDocument commands