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

  1. // doc.h : interface of the COle2ViewDoc class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. // This is a part of the Microsoft Foundation Classes C++ library.
  6. // Copyright (C) 1992-1998 Microsoft Corporation
  7. // All rights reserved.
  8. //
  9. // This source code is only intended as a supplement to the
  10. // Microsoft Foundation Classes Reference and related
  11. // electronic documentation provided with the library.
  12. // See these sources for detailed information regarding the
  13. // Microsoft Foundation Classes product.
  14.  
  15. #ifndef _DOC_H_
  16. #define _DOC_H_
  17.  
  18.  
  19. class COle2ViewDoc : public CDocument
  20. {
  21. friend class CObjTreeView ;
  22. friend class CRegistryView ;
  23. friend class CMainFrame ;
  24.  
  25. protected: // create from serialization only
  26.     COle2ViewDoc();
  27.     DECLARE_DYNCREATE(COle2ViewDoc)
  28.  
  29. public:
  30.     CString         m_szObjectCur ;
  31.     CLSID           m_clsidCur ;
  32.     BOOL            m_fTypeLib ;
  33.     BOOL            m_fInterface ;
  34.  
  35.     DWORD           m_dwClsCtx ;
  36.  
  37. // Attributes
  38. public:
  39.  
  40.  
  41. // Operations
  42. public:
  43.  
  44. // Implementation
  45. public:
  46.     virtual ~COle2ViewDoc();
  47. #ifdef _DEBUG
  48.     virtual void AssertValid() const;
  49.     virtual void Dump(CDumpContext& dc) const;
  50. #endif
  51. protected:
  52.     virtual BOOL    OnNewDocument();
  53.     virtual void    OnCloseDocument() ;
  54.  
  55. // Generated message map functions
  56. protected:
  57.     //{{AFX_MSG(COle2ViewDoc)
  58.         // NOTE - the ClassWizard will add and remove member functions here.
  59.         //    DO NOT EDIT what you see in these blocks of generated code !
  60.     //}}AFX_MSG
  61.     DECLARE_MESSAGE_MAP()
  62. };
  63.  
  64. #endif // _DOC_H_
  65.