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

  1. // CMainFrame.h : interface of the CMainFrame class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. #if !defined(AFX_CMAINFRAME_H__19818504_B837_11D0_8DF1_00C04FB68D60__INCLUDED_)
  6. #define AFX_CMAINFRAME_H__19818504_B837_11D0_8DF1_00C04FB68D60__INCLUDED_
  7.  
  8. #if _MSC_VER >= 1000
  9. #pragma once
  10. #endif // _MSC_VER >= 1000
  11.  
  12. class CMainFrame : public CFrameWnd
  13. {
  14. protected:
  15.     DECLARE_DYNCREATE(CMainFrame)
  16.     CMainFrame();
  17.  
  18. // Attributes
  19. public:
  20.    CMacroDialogBar m_wndMacroBar;
  21.    CTCSplitter m_wndSplitter;
  22.  
  23. // Operations
  24. public:
  25.  
  26. // Overrides
  27.     // ClassWizard generated virtual function overrides
  28.     //{{AFX_VIRTUAL(CMainFrame)
  29.     public:
  30.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  31.     virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
  32.     protected:
  33.     virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
  34.     //}}AFX_VIRTUAL
  35.  
  36. // Implementation
  37. public:
  38.     virtual ~CMainFrame();
  39. #ifdef _DEBUG
  40.     virtual void AssertValid() const;
  41.     virtual void Dump(CDumpContext& dc) const;
  42. #endif
  43.  
  44. protected:  // control bar embedded members
  45.     CStatusBar  m_wndStatusBar;
  46.     CToolBar    m_wndToolBar;
  47.    CReBar m_wndReBar;
  48.  
  49. // Generated message map functions
  50. protected:
  51.     //{{AFX_MSG(CMainFrame)
  52.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  53.     afx_msg void OnDestroy();
  54.     afx_msg void OnViewMacroBar();
  55.     afx_msg void OnUpdateViewMacroBar(CCmdUI* pCmdUI);
  56.     //}}AFX_MSG
  57.  
  58.     DECLARE_MESSAGE_MAP()
  59. };
  60.  
  61. /////////////////////////////////////////////////////////////////////////////
  62.  
  63. //{{AFX_INSERT_LOCATION}}
  64. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  65.  
  66. #endif // !defined(AFX_CMAINFRAME_H__19818504_B837_11D0_8DF1_00C04FB68D60__INCLUDED_)
  67.