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 / mainfrm.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-27  |  2.0 KB  |  74 lines

  1. // MainFrm.h : interface of the CMainFrame 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_MAINFRM_H__C3B18226_2457_11D1_A4EC_00C04FD91A9F__INCLUDED_)
  14. #define AFX_MAINFRM_H__C3B18226_2457_11D1_A4EC_00C04FD91A9F__INCLUDED_
  15.  
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif // _MSC_VER > 1000
  19.  
  20. class CObjListView;
  21. class CMFCBindView;
  22.  
  23. class CMainFrame : public CFrameWnd
  24. {
  25. protected: // create from serialization only
  26.     CMainFrame();
  27.     DECLARE_DYNCREATE(CMainFrame)
  28.  
  29. // Attributes
  30. public:
  31.     CObjListView* GetObjListView();
  32.     CMFCBindView* GetDocView();
  33.  
  34. // Operations
  35. public:
  36.  
  37. // Overrides
  38.     // ClassWizard generated virtual function overrides
  39.     //{{AFX_VIRTUAL(CMainFrame)
  40.     public:
  41.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  42.     protected:
  43.     virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
  44.     //}}AFX_VIRTUAL
  45.  
  46. // Implementation
  47. public:
  48.     CSplitterWnd m_wndSplitter;
  49.     virtual ~CMainFrame();
  50. #ifdef _DEBUG
  51.     virtual void AssertValid() const;
  52.     virtual void Dump(CDumpContext& dc) const;
  53. #endif
  54.  
  55. protected:  // control bar embedded members
  56.     CStatusBar  m_wndStatusBar;
  57.     CToolBar    m_wndToolBar;
  58.  
  59. // Generated message map functions
  60. protected:
  61.     //{{AFX_MSG(CMainFrame)
  62.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  63.     afx_msg void OnOleInsertNew();
  64.     //}}AFX_MSG
  65.     DECLARE_MESSAGE_MAP()
  66. };
  67.  
  68. /////////////////////////////////////////////////////////////////////////////
  69.  
  70. //{{AFX_INSERT_LOCATION}}
  71. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  72.  
  73. #endif // !defined(AFX_MAINFRM_H__C3B18226_2457_11D1_A4EC_00C04FD91A9F__INCLUDED_)
  74.