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 the use of message map ?

5 Answers   TCS,


What is the initial function to be called in MFC and what it will do

11 Answers   Infosys,


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,


How can update edit control data of an executing application from other application?

3 Answers   HP,


Hi can anyone explain about the synchronization objects types and where we are using in the code.

1 Answers  






Explain StretchBlt and BitBlt

1 Answers  


How to handle dynamic menus in mfc? What happens when client calls cocreateinstance?

0 Answers  


What is a critical section and how is it implemented?

2 Answers  


if i modified data in 1 view how does the other view knows

2 Answers   Siemens,


What is the use of CObject::Dump function ?

4 Answers  


Differ GetMessage, PostMessage & PeakMessage?

4 Answers   Symphony,


What function is used to retrieve the currently selected index in a list box?

2 Answers  


Categories