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

  1. // mainfrm.h
  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. // Purpose: interface of the CMainFrame class
  14. //
  15. // Functions:
  16. //   Most of this file was generated by AppWizard.  The functions
  17. //   which contain code specific to this sample are:
  18. //
  19. //      CMainFrame::OnSetMessageString()     -- update status bar text
  20. //
  21. //   These functions are implemented in mainfrm.cpp.
  22.  
  23. class CMainFrame : public CMDIFrameWnd
  24. {
  25.     DECLARE_DYNAMIC(CMainFrame)
  26. public:
  27.     CMainFrame();
  28.  
  29. // Attributes
  30. public:
  31.  
  32. // Operations
  33. public:
  34.  
  35. // Overrides
  36. protected:
  37.     virtual void GetMessageString(UINT nID, CString& rMessage) const;
  38.  
  39. // Implementation
  40. public:
  41.     virtual ~CMainFrame();
  42. #ifdef _DEBUG
  43.     virtual void AssertValid() const;
  44.     virtual void Dump(CDumpContext& dc) const;
  45. #endif
  46.  
  47. protected:  // control bar embedded members
  48.     CStatusBar  m_wndStatusBar;
  49.     CToolBar    m_wndToolBar;
  50.  
  51. // Generated message map functions
  52. protected:
  53.     //{{AFX_MSG(CMainFrame)
  54.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  55.     afx_msg LRESULT OnSetMessageString(WPARAM wParam, LPARAM lParam);
  56.     //}}AFX_MSG
  57.     DECLARE_MESSAGE_MAP()
  58. };
  59.  
  60. /////////////////////////////////////////////////////////////////////////////
  61.