Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

In my application i want to display the dialogue box when ever i clicked on concern button.

For Ex. I have 2 dialogue boxes in my application named abc & xyz
abc dialogue box contains two buttons called next,ok.
whenever i click on next button xyz dialogue box has to be displayed.

i have written the code as
xyz a;
a.DoModal();

But i didn't get the out put

Can any one help me to achieve this.

Thanks you a lot.
Posted
Updated 23-Jun-11 23:46pm
v2
Comments
Chandrasekharan P 23-Jun-11 7:14am    
A DoModal() call will not help you?
Lois Reonardo 23-Jun-11 15:27pm    
What about CPropertySheet.
LaxmikantYadav 24-Jun-11 6:04am    
Can u post the code, so we can help u ?

I think this link[^] will help you.
 
Share this answer
 
You should
  • use EndDialog(ID_BUTTON_NEXT); in abc
  • check abc.DoModal() return value for ID_BUTTON_NEXT and call accordigly xyz.DoModal()


BTW: what a bunch meaningful names for your dialogs!
 
Share this answer
 
Comments
usha nelavalli 27-Jun-11 7:28am    
Hi,
I did the application in the way what you suggested me but it works in reverse way .
first xyz appears and then by clicking the button in xyz only abc dialog box appeared.
you suggested me that check the return value of abc.domodal it's return value is return CDialog::DoModal();

Does i need to do changes in the return value?
Hi,
I did the application in the way what you suggested me but it works in reverse way .
first xyz appears and then by clicking the button in xyz only abc dialog box appeared.
you suggested me that check the return value of abc.domodal it's return value is return CDialog::DoModal();

Does i need to do changes in the return value?
 
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