Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can i add a dialog in a dialog in MFC.
Can i help me?
THANKS!!
Posted

It works the same. You create an instance of the dialog class and call it. It doesn't care where it is.
 
Share this answer
 
Comments
thongtran297 13-Nov-12 11:38am    
Can you explain it clearly? I don't understand how to do it.
Christian Graus 13-Nov-12 11:40am    
It makes no difference that you're inside a dialog. You do it the same as you do it elsewhere. Why are you learning MFC in 2012 ? C# is a far better choice if you're starting out.
thongtran297 13-Nov-12 11:51am    
I know C#. If you can answer my question, please. Don't ask me about java or c#.
I explain clearly my question:
I have a parent dialog and a child dialog.
My prolem is: how can i show "parent dialog" and "child dialog" in it.
Christian Graus 13-Nov-12 11:53am    
Do you mean the child is a new dialog, or embedded inside the parent ? I think perhaps your question is not clear.
thongtran297 13-Nov-12 11:57am    
No it isn't the new dialog.
example:
i have a list of something and control in a dialog,
and now i want add this dialog to a difference dialog
The way to do this in MFC is to create your re-usable dialog and make it into a custom control. It's been many years since I did this last, but have a look at:
Creating Custom Controls and
Creating embedded dialogs in MFC.
 
Share this answer
 
You can use tab order dialogs in your parent dialog. Please check the link
Creating embedded dialogs in MFC[^]
 
Share this answer
 
hi
CFileDialog f(1);
f.DoModal();
 
Share this answer
 
hi may be you want to create a dialog control.if that is fine then a lot of stuffs are already available on the codeproject
 
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