Click here to Skip to main content
12,299,947 members (54,172 online)
Click here to Skip to main content

Stats

208.9K views
5.3K downloads
82 bookmarked
Posted

Automatic Tab Bar for MDI Frameworks

, 3 Jan 2003 Public Domain
A dockable bar containing a tabbed list of open windows
// DemoPropertyPage.h : header file
//

#ifndef __DEMOPROPERTYPAGE_H__
#define __DEMOPROPERTYPAGE_H__

#include "MainFrm.h"
class CViewManager;      // forward declaration


/////////////////////////////////////////////////////////////////////////////
// CDemoPropertyPage1 dialog

class CDemoPropertyPage1 : public CPropertyPage
{
	DECLARE_DYNCREATE(CDemoPropertyPage1)

// Construction
public:
	CDemoPropertyPage1();
	~CDemoPropertyPage1();

// Dialog Data
	//{{AFX_DATA(CDemoPropertyPage1)
	enum { IDD = IDD_PROPPAGE1 };
	int		m_nButType;
	BOOL	m_bFlatButtons;
	BOOL	m_bDispIcons;
	//}}AFX_DATA


// Overrides
	// ClassWizard generate virtual function overrides
	//{{AFX_VIRTUAL(CDemoPropertyPage1)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
//	CMainFrame*    m_pFrame;
	CViewManager*  m_pViewManager;      // ptr back to the ViewManager

	// Generated message map functions
	//{{AFX_MSG(CDemoPropertyPage1)
	afx_msg void OnActiveTabFont();
	afx_msg void OnInactiveTabFont();
	afx_msg void OnModifiedColor();
	afx_msg void OnSelectedColor();
	afx_msg void OnUnselectedColor();
	afx_msg void OnButtons();
	afx_msg void OnFlat();
	afx_msg void OnNormal();
	virtual BOOL OnInitDialog();
	afx_msg void OnDispIcons();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

};


/////////////////////////////////////////////////////////////////////////////
// CDemoPropertyPage2 dialog

class CDemoPropertyPage2 : public CPropertyPage
{
	DECLARE_DYNCREATE(CDemoPropertyPage2)

// Construction
public:
	CDemoPropertyPage2();
	~CDemoPropertyPage2();

// Dialog Data
	//{{AFX_DATA(CDemoPropertyPage2)
	enum { IDD = IDD_PROPPAGE2 };
	CString	m_strFileName;
	int		m_nDispType;
	//}}AFX_DATA

// Overrides
	// ClassWizard generate virtual function overrides
	//{{AFX_VIRTUAL(CDemoPropertyPage2)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	CMainFrame*    m_pFrame;

	// Generated message map functions
	//{{AFX_MSG(CDemoPropertyPage2)
	afx_msg void OnBkcolor();
	afx_msg void OnBkfont();
	afx_msg void OnBrowse();
	afx_msg void OnDisplayType();
	afx_msg void OnBacklogo();
	afx_msg void OnDefault();
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()

};



#endif // __DEMOPROPERTYPAGE_H__

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.

License

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

Share

About the Author

Paul Selormey
Engineer
Japan Japan
Systems Engineer

You may also be interested in...

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