Friday, November 4, 2011

Summary of Windows Programming in C programming language

Summary  

(a) A message box can be displayed by calling the MessageBox( ) API function.
(b) Message boxes are often used to ascertain the flow of a program.
(c)
Appearance of a message box can be customized.
(d) The CreateWindow( ) API function creates the window in memory.
(e) The window that is created in memory is displayed using the ShowWindow( ) API function.
(f) A ‘window class’ specifies various properties of the window that we are creating.
(g)
The header file ‘Windows.h’ contains declaration of several macros used in Windows programming.
(h) When the user clicks in a window, or moves mouse pointer on the window, messages are generated and posted in the application message queue.
(i) A message contains the message id and additional information about the message.
(j)
The GetMessage( )-DispatchMessage( ) loop breaks when GetMessage( ) encounters the WM_QUIT message.
(k) If we don’t handle a message received by our application then the DefWindowProc( ) function is called to do the default processing.

No comments:

Post a Comment