Click here to Skip to main content
11,719,185 members (73,974 online)
Click here to Skip to main content
Add your own
alternative version

Automatic Tab Bar for MDI Frameworks

, 3 Jan 2003 Public Domain 205.9K 5.2K 81
A dockable bar containing a tabbed list of open windows
// MainFrm.h : interface of the CMainFrame class

#if !defined(AFX_MAINFRM_H__60D38609_4181_11D3_934F_0000F0510AC9__INCLUDED_)
#define AFX_MAINFRM_H__60D38609_4181_11D3_934F_0000F0510AC9__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "ViewManager.h"
#include "WindowManager.h"

class CMainFrame : public CMDIFrameWnd

// Attributes

// Operations
//	CViewManager m_wndViewManager;
	CMDIClient   m_MDIClient;

	void GetControlBarsEx(CArray<CControlBar*, CControlBar*>& arrBars);

// Overrides
	// ClassWizard generated virtual function overrides
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);

// Implementation
	virtual ~CMainFrame();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;

protected:  // control bar embedded members
	CStatusBar  m_wndStatusBar;
	CToolBar    m_wndToolBar;

// Generated message map functions
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnClose();
	afx_msg void OnProperties();
	afx_msg void OnFuntime();
	afx_msg void OnUpdateFuntime(CCmdUI* pCmdUI);



// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MAINFRM_H__60D38609_4181_11D3_934F_0000F0510AC9__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article, along with any associated source code and files, is licensed under A Public Domain dedication


About the Author

Paul Selormey
Japan Japan
Electrical/Mobile Communication Engineer. Currently developing GIS, Visualization and Industrial Automation software in Japan.

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.150901.1 | Last Updated 4 Jan 2003
Article Copyright 2000 by Paul Selormey
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid