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 is socket?

3 Answers  


What is #progma and where it is used?

5 Answers   L&T,


What MFC base classes provide support for ActiveX controls?

2 Answers   Wipro,


how can u change button shape at run time

3 Answers   Samsung,


What is the base class for most MFC classes?

7 Answers   CMC, Siemens,


What is thread & process?

15 Answers   Exaband,


visual Pogramming c++ coding for create a paint application.. (Please someone help me)

2 Answers  


What is the range of intensity of RGB

1 Answers  


What interface must be supported by an ActiveX control?

2 Answers  


What does mfc stand for?

0 Answers  


What is CSingleDocTemplate?

1 Answers  


What four types of properties are supported by an ActiveX control?

1 Answers  


Categories