home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / labs / c10 / lab01 / baseline / browserdoc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-20  |  1.2 KB  |  52 lines

  1. // BrowserDoc.h : interface of the CBrowserDoc class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class CBrowserDoc : public CDocument
  6. {
  7. protected: // create from serialization only
  8.     
  9.     //Exercise 1 add database object
  10.  
  11.     CBrowserDoc();
  12.     DECLARE_DYNCREATE(CBrowserDoc)
  13.  
  14. // Attributes
  15. public:
  16.  
  17.     //Exercise 1 function to return pointer to CDaoDatabase object
  18.  
  19.  
  20. // Operations
  21. public:
  22.  
  23. // Overrides
  24.     // ClassWizard generated virtual function overrides
  25.     //{{AFX_VIRTUAL(CBrowserDoc)
  26.     public:
  27.     virtual BOOL OnNewDocument();
  28.     virtual void Serialize(CArchive& ar);
  29.     virtual void OnCloseDocument();
  30.     //}}AFX_VIRTUAL
  31.  
  32. // Implementation
  33. public:
  34.     virtual ~CBrowserDoc();
  35. #ifdef _DEBUG
  36.     virtual void AssertValid() const;
  37.     virtual void Dump(CDumpContext& dc) const;
  38. #endif
  39.  
  40. protected:
  41.  
  42. // Generated message map functions
  43. protected:
  44.     //{{AFX_MSG(CBrowserDoc)
  45.         // NOTE - the ClassWizard will add and remove member functions here.
  46.         //    DO NOT EDIT what you see in these blocks of generated code !
  47.     //}}AFX_MSG
  48.     DECLARE_MESSAGE_MAP()
  49. };
  50.  
  51. /////////////////////////////////////////////////////////////////////////////
  52.