Click here to Skip to main content
15,885,366 members
Articles / Desktop Programming / MFC

Setting the row count of a tool bar

Rate me:
Please Sign up or sign in to vote.
4.90/5 (7 votes)
24 Nov 20012 min read 89.5K   1.7K   28  
Floating a CToolBar with a given number of rows to be displayed is tricky
// RoboterDoc.cpp : Implementierung der Klasse CRoboterDoc
//

#include "stdafx.h"
#include "RasendeRoboter.h"
#include "RoboterDoc.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CRoboterDoc

IMPLEMENT_DYNCREATE(CRoboterDoc, CDocument)

BEGIN_MESSAGE_MAP(CRoboterDoc, CDocument)
	//{{AFX_MSG_MAP(CRoboterDoc)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CRoboterDoc Konstruktion/Destruktion

CRoboterDoc::CRoboterDoc() 
{
}

CRoboterDoc::~CRoboterDoc()
{
}

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

	// ZU ERLEDIGEN: Hier Code zur Reinitialisierung einf�gen
	// (SDI-Dokumente verwenden dieses Dokument)

	return TRUE;
}


/////////////////////////////////////////////////////////////////////////////
// CRoboterDoc Serialisierung

void CRoboterDoc::Serialize(CArchive& ar)
{

	if (ar.IsStoring())
	{
	}
	else
	{
	}
}

/////////////////////////////////////////////////////////////////////////////
// CRoboterDoc Diagnose

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

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

/////////////////////////////////////////////////////////////////////////////
// CRoboterDoc Befehle

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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
Germany Germany
PhD Chemist,
programming with MSVC & MFC since 1996

Comments and Discussions