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

what are the feauters of CObject

4 Answers   Siemens, Wipro,


Tell me the work of HTREDUCE and HTZOOM

1 Answers   E Logic,


How can i implement the dynamic menus in MFC plz give the code

2 Answers  


Does the application have more than one object? If no, then what is the reason?

5 Answers  


what do you mean by psychic window?

2 Answers   Patni,






Do you have an idea about MFC?

0 Answers   C DAC, CDAC,


How to handle RTTI in MFC ?

1 Answers  


I can i set size of integer variable should be fixed for different operating systems(Ex i want integer size is 2bytes in OS)

2 Answers   Invensys,


is there any class which is not derived from Cobject

11 Answers   Patni,


What is the use of UpdateData funciton ?

7 Answers  


1)At run-time, you can change the icon by calling the LoadIcon() function?

2 Answers  


What is difference between the TCP/IP and UDP socket

5 Answers   Invensys,


Categories