Create the window:
The window class
define general properties of window. CreateWindow function allow user to create
window.
Structure of
CreateWindow( ) function:
HWND=CreateWindow(
window class name,
window caption,
window style,
initial x position,
initial y position,
width,
height,
parent window handler,
program instance handler,
create parameter
);
1. Display the window:
ShowWindow( )
fucntion is used to display a window which is created using CreateWindow( )
fucntion.
Syntax:
ShowWindow(hwnd,
windowmode);
·
The first argument is the handle to the window created by CreateWindow.
·
The second argument is the window mode.
There are three modes available:
§
SW_SHOWNORMAL
§
SW_SHOWMAXIMIZED
§
SW_SHOWMINNOACTIVE
2. Update the window:
Update window function is called when
current window is modified or changed. For example if a window is moved from
its current position or resized then then UpdateWindow( ) function is called to
update current window.
UpdateWindow call
windows paint by sending window handler with message WN_PAINT.
0 comments:
Post a Comment