home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / advanced / chkbook / mainfrm.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-27  |  1.3 KB  |  49 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. // This class implements the Check and Book commands in the View menu.
  14. // These commands create a check or book view, if one does not already exist.
  15.  
  16. class CCheckView;
  17. class CBookView;
  18.  
  19.  
  20. class CMainFrame : public CMDIFrameWnd
  21. {
  22.     DECLARE_DYNAMIC(CMainFrame)
  23. public:
  24.     CMainFrame();
  25.  
  26. // Operations
  27.     void CreateOrActivateFrame(CDocTemplate* pTemplate,
  28.         CRuntimeClass* pViewClass);
  29.  
  30. // Implementation
  31. public:
  32.     virtual ~CMainFrame();
  33.  
  34. protected:  // control bar embedded members
  35.     CStatusBar  m_wndStatusBar;
  36.     CToolBar    m_wndToolBar;
  37.  
  38. // Generated message map functions
  39. protected:
  40.     //{{AFX_MSG(CMainFrame)
  41.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  42.     afx_msg void OnViewBook();
  43.     afx_msg void OnViewCheck();
  44.     //}}AFX_MSG
  45.     DECLARE_MESSAGE_MAP()
  46. };
  47.  
  48. /////////////////////////////////////////////////////////////////////////////
  49.