Click here to Skip to main content
15,897,371 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm going to develop MFC dialogue based application in which Parent window contain different controls in which some are common with child window.So I want to call child dialogues on the click event of parent windows button and that child window should fit into Parent windows provided space,like Tab control messaging provide such facility.How to do without using Tab control?
Posted

Just position your child dialog within the parent window. You can specify the coordinates in the dialog resource or calculate them at run time in the part of your child dialog code that handles the WM_INITDIALOG message.
 
Share this answer
 
Comments
Venkat Raghvan 19-Jul-13 6:46am    
what will be style of Child window?overlapped or child!Because I called child control on OnModal function.Is it right or not?
Richard MacCutchan 19-Jul-13 8:26am    
I thought you said it was a dialog? If it is some other type then it should be a child control of your dialog, in which case you can control it by adjusting its z-order (assuming you have more of these windows).
You Can do it Like this


if(!strcmp(command,"Login"))
{

CSomeDlg dlg;
dlg.DoModal();


}
 
Share this answer
 
Comments
Venkat Raghvan 22-Jul-13 8:20am    
I can try with DOModal(),it opens like popup window,i would like to placed into parent dialogues rectangular region,please give any code example!!

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