home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / database / daoview / daovwdoc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-27  |  1.4 KB  |  59 lines

  1. // DaoVwDoc.h : interface of the CDaoViewDoc class
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1998 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. class CDaoTreeView;
  14. class CDaoListView;
  15.  
  16. class CDaoViewDoc : public CDocument
  17. {
  18. protected: // create from serialization only
  19.     CDaoViewDoc();
  20.     DECLARE_DYNCREATE(CDaoViewDoc)
  21.  
  22. // Attributes
  23. public:
  24.     CDaoDatabase* m_pDB;
  25.     CDaoTreeView* m_pTreeView;
  26.     CDaoListView* m_pListView;
  27.  
  28. // Operations
  29. public:
  30.     void RefreshViews();
  31.  
  32. // Overrides
  33.     // ClassWizard generated virtual function overrides
  34.     //{{AFX_VIRTUAL(CDaoViewDoc)
  35.     public:
  36.     virtual BOOL OnNewDocument();
  37.     virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
  38.     //}}AFX_VIRTUAL
  39.  
  40. // Implementation
  41. public:
  42.     virtual ~CDaoViewDoc();
  43.     virtual void Serialize(CArchive& ar);   // overridden for document i/o
  44. #ifdef _DEBUG
  45.     virtual void AssertValid() const;
  46.     virtual void Dump(CDumpContext& dc) const;
  47. #endif
  48.  
  49. protected:
  50.  
  51. // Generated message map functions
  52. protected:
  53.     //{{AFX_MSG(CDaoViewDoc)
  54.     //}}AFX_MSG
  55.     DECLARE_MESSAGE_MAP()
  56. };
  57.  
  58. /////////////////////////////////////////////////////////////////////////////
  59.