What is model and modeless dialog box ? Give some examples?

Answers were Sorted based on User's Feedback



What is model and modeless dialog box ? Give some examples?..

Answer / rck

In Modal Dialog we cannot switch between the dialog and the
window without answering to the dialog where as in modeless
Dialog we can switch between the dialog and the window.

Is This Answer Correct ?    8 Yes 2 No

What is model and modeless dialog box ? Give some examples?..

Answer / umesh pai

Modal dialog is one which will not allow u to access any thing until this dialog is active.

Call:
Dialog::DoModal()

And reverse of this ur modeless dialog.
Dialog::ShowDialog();

For Example:
Modal Dialog:
When we access Menu items such as Save as, Open, attach file, in any application, we can not able to access any part of the application execpt the active dialog.

When we open add remove program for uninstalling any application, u will get a Uninstallation dialog which will be modeles. bcz still u were able to access add remove programs. (this is probably in Vista. And in XP its modal dialog which they have used)

Is This Answer Correct ?    6 Yes 2 No

Post New Answer

More MFC Interview Questions

How to update all the views whenver document got updated ?

1 Answers  


Q1. A. What is unary operator? List out the different operators involved in the unary operator. B. What is an adjust field format flag? Q2. A. Distinguish between a # include and #define. B. Can a list of string be stored within a two dimensional array? Q3. A. Explain how a pointer to function can be declared in C++? B. List the merits and demerits of declaring a nested class in C++? Q4. A. What are the syntactic rules to be avoid ambiguity in multiple inheritence? B. Explain the operation of overloading of an assignment operator. Q5. A. Explain how the virtual base class is different from the conventional base classes of the opps. B. Explain how an exception handler is defined and invoked in a Program. Q6. A. What is a binary file? List the merits and demerits of the binary file usagein C++. B. Write short notes on Text Manipulation Routines. C. Write bites in Turbo c++ Header ("Include") Files.

3 Answers   ABC, HCL, Infosys,


How many types of combo box are their

2 Answers   Aaditya Info Solutions, E Logic,


what is the use of Mutex and critical section

2 Answers  


What is the difference between the ASSERT and VERIFY macros?

4 Answers  






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

2 Answers  


plzz tell me what we can do and dont in tally ERP & sap business one?

0 Answers  


What is a message map, and what is the advantage of a message map over virtual functions?

1 Answers  


how do u identify RTTI in vc++

4 Answers   Siemens,


what is the use of CCmdTarget?

4 Answers   Siemens,


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

1 Answers  


what is functioning of DIalodDataXchange ..?

0 Answers  


Categories