Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, this may be a stupid question but I have been searching for answers and desperately need help. I have a MFC code which has 1 form already. I have added another form however the forms are not linked. Can someone help me link the codes so that depending on a value the forms will switch being displayed.
Posted
Comments
Maximilien 8-Aug-11 12:38pm    
You need to manually code the "link" of a user action to be able to show the new "form"

What are the "forms" you are using ? dialogs ? views ? property sheets ?

Max.
Albert Holguin 8-Aug-11 15:26pm    
Windows forms are a .Net concept... MFC has windows (and derivatives) such as dialogs.

1 solution

I assume you mean dialogs when you says forms.
The way it works in MFC is that you need to create a class that represents a dialog.
You can do this by right clicking on the dialog and selecting Add Class.

After you have classes for the dialogs, you just need to create an object of the class and call DoModal on that instance.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900