Click here to Skip to main content
15,891,943 members
Articles / Desktop Programming / MFC

A Property Sheet in a Docking Toolbar

Rate me:
Please Sign up or sign in to vote.
4.06/5 (7 votes)
26 Nov 2004CPOL3 min read 69.2K   2.1K   34  
Explains how to put a CPropertySheet into a CControlBar.
// tab_dlg_barDoc.cpp : implementation of the Ctab_dlg_barDoc class
//

#include "stdafx.h"
#include "tab_dlg_bar.h"

#include "tab_dlg_barDoc.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


// Ctab_dlg_barDoc

IMPLEMENT_DYNCREATE(Ctab_dlg_barDoc, CDocument)

BEGIN_MESSAGE_MAP(Ctab_dlg_barDoc, CDocument)
END_MESSAGE_MAP()


// Ctab_dlg_barDoc construction/destruction

Ctab_dlg_barDoc::Ctab_dlg_barDoc()
{
	// TODO: add one-time construction code here

}

Ctab_dlg_barDoc::~Ctab_dlg_barDoc()
{
}

BOOL Ctab_dlg_barDoc::OnNewDocument()
{
	if (!CDocument::OnNewDocument())
		return FALSE;

	// TODO: add reinitialization code here
	// (SDI documents will reuse this document)

	return TRUE;
}




// Ctab_dlg_barDoc serialization

void Ctab_dlg_barDoc::Serialize(CArchive& ar)
{
	if (ar.IsStoring())
	{
		// TODO: add storing code here
	}
	else
	{
		// TODO: add loading code here
	}
}


// Ctab_dlg_barDoc diagnostics

#ifdef _DEBUG
void Ctab_dlg_barDoc::AssertValid() const
{
	CDocument::AssertValid();
}

void Ctab_dlg_barDoc::Dump(CDumpContext& dc) const
{
	CDocument::Dump(dc);
}
#endif //_DEBUG


// Ctab_dlg_barDoc commands

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 The Code Project Open License (CPOL)


Written By
Software Developer The University of St. Andrews
United Kingdom United Kingdom
I am a university academic specialising in Neuroscience. I write simulation and analysis software.

Comments and Discussions