Solved

Form change in CForm

Posted on 2003-12-03
5
228 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

744 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

11 Experts available now in Live!

Get 1:1 Help Now