Solved

Form change in CForm

Posted on 2003-12-03
5
229 Views
Last Modified: 2010-04-01
I have a Visual Studio.NET MFC C++ Projekt
I used CForm as Base class
my questio is... how can i change the form used as child?
0
Comment
Question by:dkloeck
  • 3
5 Comments
 
LVL 10

Author Comment

by:dkloeck
ID: 9874143
hummm...ok..i try again...

i have a projekt with a CForm Base class, & what i want is change the default dialog of CForm, & change it against my own by pressing a key.
it must be easy.. though
0
 
LVL 44

Accepted Solution

by:
AndyAinscow earned 30 total points
ID: 9897353
Have two CForm based views.  One based on one dialog, one based on the other and show/hide dynamically.

See the Chkbook example - it may give you some hints.
0
 
LVL 10

Author Comment

by:dkloeck
ID: 9897564
isn't there just a form to change the child Dialog of the windows/Forms?
0
 
LVL 10

Author Comment

by:dkloeck
ID: 9897652
its just..that i have to change between 6 dialogs
0
 
LVL 44

Assisted Solution

by:Karl Heinz Kremer
Karl Heinz Kremer earned 20 total points
ID: 9898436
Use stacked dialogs (http://www.codeproject.com/dialog/stackdialog.asp?target=stacked%7Cdialog) embedded in your top level dialog.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now