Modal and modeless dialog box

Explain modal and modeless dialog box? What is the difference between modal and modeless dialog box?

Modal dialog box is the dialog box in which user response is required before continuing with the program. The Paragraph dialog box of WordPad is a good example of it when it is displaying, the user cannot use any other part of WordPad unless he or she closes this object first

Modeless dialog box is the dialog box in which the screen remain stable and available to all the user for use at any time but it doesn’t stop their and allow other user work to be carried out without any interference. For example The Find dialog box of WordPad.

The difference between Modal and modeless dialog box are:-

Modal captures the message loop and doesn’t move on to other objects until the current object is closed but modeless doesn’t capture it.

Modal doesn’t allow its parents window to be accessed until all other windows are closed but it is allowed in modeless.

Example of Modal is Save and Save As in Microsoft word until they are opened you can not do anything until you close the window whereas Find and Replace can simultaneously be executed together.
Difference between critical section, mutex and semaphore.
A critical section in which the process may be changing common variables, updating table, writing a file and perform another function..........
What is OLE? How do you handle drag and drop in OLE?
OLE is meant for Object Linking and Embedding. It is a way of handling compound documents (Single document which can store data in multiple formats—such as text.........
What is IUnknown? Explain some of commonly used methods provided by IUnknown.
IUnknown is the base interface for every COM class. Through all this COM interfaces are derived. It uses three methods which are as follows:...............
Post your comment