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

i have created runtime menu -- ( admistrator ->managepackage,manage module). but now i want to open a dialog when i select manage package and any other diaolg when selecting manage module ( whole selection is at run time only ) . Please HELP .its urgently required

3 Answers   Patni,


what if we provide two message handler for same message ?

1 Answers  


what is the use of AFX_MANAGE_STATE ?

4 Answers   HCL,


what is message loop how mfc does it internally?

4 Answers   Aspire,


Do you have an idea about MFC?

0 Answers   C DAC, CDAC,


How to update windows title bar dynamically?

7 Answers   HCL,


Which Macro is a Super set of other two macro DECLARE_SERIAL,DECLARE_DYNAMIC and DECLARE_DYNCREATE. ?

2 Answers   Sony,


Explain the flow of SDI application?

8 Answers   Mphasis,


What interface must be supported by an ActiveX control?

2 Answers  


What is the difference between the Encapsulation and Abstraction

25 Answers   HCL, Invensys, TCS, Wipro,


What is the use of message map ?

5 Answers   TCS,


1)To Remove WS_MINIMIZEBOX in a Frame ?

1 Answers  


Categories