How we call a dialog in another dialog?

Answers were Sorted based on User's Feedback



How we call a dialog in another dialog?..

Answer / hitesh dedhia

Using DoModal() function.
create a class of another dialog box.
and write a code in fist dialog box function.

Classname(second) variable_name;
variable_name.DoModl();

and define the new header file in fisrt dialog bob code.
like;
#include "classname.h"

Is This Answer Correct ?    11 Yes 0 No

How we call a dialog in another dialog?..

Answer / dsk

Create a new dialog and this new dialog header file ie .h
file will be added to the main dialog.

Then in main dialog on button click, create an
varaible,varaible.Domodal()function.

Is This Answer Correct ?    6 Yes 0 No

Post New Answer

More MFC Interview Questions

Hi All, i am new for VC++ SDK. i want to get the IP Address of all the External device connected with my local machine.please give the code Regards, Praveer

1 Answers   TCS, Tech Mahindra,


What is socket?

3 Answers  


How we call a dialog in another dialog?

2 Answers  


Do you have an idea about MFC?

1 Answers   C DAC, CDAC,


What is the difference between hinsrtance and hprevinstance in WinMain function?

3 Answers  


What is subclassing?

2 Answers  


Hi All, I have created one MFC Dialog Based application.now if i am running the application its working fine,instead of closing he application i minimized the application,if i run the application again,i am getting the Dialog. I want to prevent the calling of application multiple times. please give me the code and let me know in which method i need to make changes. Praveer

7 Answers   HP,


how u can move CDC pointer to one line in cview?

2 Answers  


What is the command routing in MFC framework?

3 Answers  


1)set the Title for The File DialogBox, in MFC?

1 Answers  


What is the size of class

18 Answers   Aircom,


What is the difference between workrer thread and UI thread

3 Answers   HCL,


Categories