Posts

Showing posts with the label WINDOWS PROGRAMMING

WINDOWS PROGRAMMING

WINDOWS PROGRAMMING: Windows consists largely of three dynamic link libraries . Kernel : 1) Responsible for Memory Management . 2) Loading and Executing Programs. 3) Scheduling. User : The user interface and windowing . GDI :  Graphical Device Interface . a) Windows are created based on a " Window Class ". b) The Window class identifies the window procedure that processes messages to the window. c) When a windows program begins execution, windows creates a " message queue " for the program. d) The program includes a " message loop " to retrieve these messages from the queue and dispatch them to the appropriate window procedure. e) " WinMain " is the entry point to the program. QUEUE AND NON-QUEUED MESSAGES : Queued messages are posted to a message queue while non-queued messages are sent to the window procedure. FUNCTIONS:  1) LoadIcon : Loads an icon for use by a program.  2) LoadCursor : Loads a mouse cursor for use by a program.  3) ...