Click here to Skip to main content
11,706,979 members (49,916 online)
Click here to Skip to main content
Add your own
alternative version

Child Dialog (Sub Forms)

, 17 Nov 1999 120.4K 3.3K 45
A simple class for handling Child Dialogs within a dialog or property sheet.
// ChildView.cpp : Implementatierung der Klasse CChildView

#include "stdafx.h"
#include "ChildDlgTest.h"
#include "ChildView.h"

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

// CChildView




// Nachrichtenbehandlungsroutinen von CChildView

BOOL CChildView::PreCreateWindow(CREATESTRUCT& cs) 
	if (!CWnd::PreCreateWindow(cs))
		return FALSE;

	cs.dwExStyle |= WS_EX_CLIENTEDGE; &= ~WS_BORDER;
	cs.lpszClass = AfxRegisterWndClass(CS_HREDRAW|CS_VREDRAW|CS_DBLCLKS, 

	return TRUE;

void CChildView::OnPaint() 
	CPaintDC dc(this); // Ger�tekontext zum Zeichnen
	// ZU ERLEDIGEN: F�gen Sie hier Ihren Code f�r die Nachrichtenbehandlung hinzu
	// Rufen Sie nicht CWnd::OnPaint() f�r Nachrichten zum Zeichnen auf

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 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


About the Author

Daniel Zuppinger
Chief Technology Officer
Switzerland Switzerland
Professional IT developer since 1983. First projects with Cobol, then Pascal, Modula2, C and since Visual C++ 1.0 also with C++. Works since 1986 as Consultant, between 1990 and 2008 for Infobrain in Switzerland, currently employed by enValue (also Switzerland).
Current field is the project management and development of software for Bank applications.
Married, two daughters, Hobbies : Paragliding, Orienteering, Mountainbiking, Photography

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.150819.1 | Last Updated 18 Nov 1999
Article Copyright 1999 by Daniel Zuppinger
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid