home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / general / docktool / mainfrm.h < prev    next >
C/C++ Source or Header  |  1998-03-26  |  2KB  |  68 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. #include "palette.h"
  14. #include "editbar.h"
  15.  
  16. class CMainFrame : public CFrameWnd
  17. {
  18. protected: // create from serialization only
  19.     CMainFrame();
  20.     DECLARE_DYNCREATE(CMainFrame)
  21.  
  22. // Attributes
  23. public:
  24.     BOOL m_bColor;
  25.     BOOL m_bToolTips;
  26.  
  27. // Operations
  28. public:
  29.  
  30. // Overrides
  31.     // ClassWizard generated virtual function overrides
  32.     //{{AFX_VIRTUAL(CMainFrame)
  33.     public:
  34.     virtual BOOL PreTranslateMessage(MSG* pMsg);
  35.     //}}AFX_VIRTUAL
  36.  
  37. // Implementation
  38. public:
  39.     virtual ~CMainFrame();
  40.     void DockControlBarLeftOf(CToolBar* Bar,CToolBar* LeftOf);
  41.  
  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_wndMainBar;
  50.     CToolBar    m_wndResourceBar;
  51.     CToolBar    m_wndDebugBar;
  52.     CEditBar    m_wndEditBar;
  53.     CToolBar    m_wndBrowseBar;
  54.     CPaletteBar m_wndPaletteBar;
  55.  
  56. // Generated message map functions
  57. protected:
  58.     //{{AFX_MSG(CMainFrame)
  59.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  60.     afx_msg void OnToolsToolbar();
  61.     afx_msg void OnMenuSelection();
  62.     afx_msg void OnClose();
  63.     //}}AFX_MSG
  64.     DECLARE_MESSAGE_MAP()
  65. };
  66.  
  67. /////////////////////////////////////////////////////////////////////////////
  68.