ARCHITECTURE OF WIN 32 PROGRAM
Figure: working of Win 3 program
The hardware events in the figure are the mouse associated events like the mouse move, left button down etc or the keyboard events like the release or character press. The events are stored in the system queue and it is dispatched to the suitable message queue of the application. Each and every program will have the message loop that will recover the events from the queue and call the window procedure that will contain the handler. When the handler is not integrated in the application the default window procedure will be called. The default window procedure Default Wnd Proc in the above figure implements the behaviors like minimizing, maximizing or restoring the displaying menu resources.