// mainfrm.h : interface of the CMainFrame class // ///////////////////////////////////////////////////////////////////////////// // Instead of using a class here we could have just put these controls // directly into CMainFrame. As it is they are sending messages to the // main frame just like they were part of it instead of part of a control // bar. class CSepToolBar : public CToolBar { public: CComboBox m_comboBox; CFont m_font; }; class CMainFrame : public CFrameWnd { protected: // create from serialization only CMainFrame(); DECLARE_DYNCREATE(CMainFrame) // Attributes public: // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CMainFrame) //}}AFX_VIRTUAL // Implementation public: virtual ~CMainFrame(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif public: // control bar embedded members CStatusBar m_wndStatusBar; CSepToolBar m_wndToolBar; // Generated message map functions protected: //{{AFX_MSG(CMainFrame) afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); // NOTE - the ClassWizard will add and remove member functions here. // DO NOT EDIT what you see in these blocks of generated code! //}}AFX_MSG DECLARE_MESSAGE_MAP() }; /////////////////////////////////////////////////////////////////////////////