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

  1. // BindDoc.h : interface of the CMFCBindDoc 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. #if !defined(AFX_BINDDOC_H__C3B18228_2457_11D1_A4EC_00C04FD91A9F__INCLUDED_)
  14. #define AFX_BINDDOC_H__C3B18228_2457_11D1_A4EC_00C04FD91A9F__INCLUDED_
  15.  
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif // _MSC_VER > 1000
  19.  
  20.  
  21. class CMFCBindDoc : public COleDocument
  22. {
  23. protected: // create from serialization only
  24.     CMFCBindDoc();
  25.     DECLARE_DYNCREATE(CMFCBindDoc)
  26.  
  27. // Attributes
  28. public:
  29.  
  30. // Operations
  31. public:
  32.  
  33. // Overrides
  34.     // ClassWizard generated virtual function overrides
  35.     //{{AFX_VIRTUAL(CMFCBindDoc)
  36.     public:
  37.     virtual BOOL OnNewDocument();
  38.     virtual void Serialize(CArchive& ar);
  39.     virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
  40.     virtual void OnCloseDocument();
  41.     //}}AFX_VIRTUAL
  42.  
  43. // Implementation
  44. public:
  45.     virtual ~CMFCBindDoc();
  46. #ifdef _DEBUG
  47.     virtual void AssertValid() const;
  48.     virtual void Dump(CDumpContext& dc) const;
  49. #endif
  50.  
  51. protected:
  52.  
  53. // Generated message map functions
  54. protected:
  55.     //{{AFX_MSG(CMFCBindDoc)
  56.     afx_msg void OnOleInsertNew();
  57.     afx_msg void OnSectionRemove();
  58.     afx_msg void OnUpdateSectionRemove(CCmdUI* pCmdUI);
  59.     afx_msg void OnFilePrint();
  60.     afx_msg void OnFilePrintAll();
  61.     //}}AFX_MSG
  62.     DECLARE_MESSAGE_MAP()
  63. };
  64.  
  65. /////////////////////////////////////////////////////////////////////////////
  66.  
  67. //{{AFX_INSERT_LOCATION}}
  68. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  69.  
  70. #endif // !defined(AFX_BINDDOC_H__C3B18228_2457_11D1_A4EC_00C04FD91A9F__INCLUDED_)
  71.