home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / samples / c05 / toolbar / mainfrm.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-20  |  1.2 KB  |  52 lines

  1. // MainFrm.h : interface of the CMainFrame class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class CMainFrame : public CFrameWnd
  6. {
  7. protected: // create from serialization only
  8.     BOOL LoadWindowPlacement (LPWINDOWPLACEMENT pwp);
  9.     VOID SaveWindowPlacement (LPWINDOWPLACEMENT pwp);
  10.     afx_msg void OnClose();
  11.     CMainFrame();
  12.     DECLARE_DYNCREATE(CMainFrame)
  13.  
  14. // Attributes
  15. public:
  16.  
  17. protected:
  18.     CToolBar * m_pColorToolbar;
  19.  
  20. // Operations
  21. public:
  22.  
  23. // Overrides
  24.     // ClassWizard generated virtual function overrides
  25.     //{{AFX_VIRTUAL(CMainFrame)
  26.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  27.     //}}AFX_VIRTUAL
  28.  
  29. // Implementation
  30. public:
  31.     virtual ~CMainFrame();
  32. #ifdef _DEBUG
  33.     virtual void AssertValid() const;
  34.     virtual void Dump(CDumpContext& dc) const;
  35. #endif
  36.  
  37. protected:  // control bar embedded members
  38.     CToolBar    m_wndToolBar;
  39.  
  40. // Generated message map functions
  41. protected:
  42.     //{{AFX_MSG(CMainFrame)
  43.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  44.     afx_msg void OnViewColortoolbar();
  45.     afx_msg void OnUpdateViewColortoolbar(CCmdUI* pCmdUI);
  46.     afx_msg void OnDestroy();
  47.     //}}AFX_MSG
  48.     DECLARE_MESSAGE_MAP()
  49. };
  50.  
  51. /////////////////////////////////////////////////////////////////////////////
  52.