[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
GetDC( hWnd )-> <hDC>
------------------------------------------------------------------------------
PARAMETER:
<hWnd> Is the handle that identifies the window for that a
device context is returned
RETURNS:
<hDC> handle that identifies the device context
DESCRIPTION:
This function retrieves the handle of the device context for the client
area in the given window.
You may think about a device context as a virtual screen, where <GetDC>
is similar to clippers DispBegin, and ReleaseDC() is like DispEnd().
GetDC() starts working with a virtual screen, and ReleaseDC() updates all
painting to the visible screen.
Like with clipper DispBegin() / DispEnd() sequence, if you don't call
ReleaseDC() after GetDC(), you are un-balancing windows, causing the
system to finally to crash.
SOURCE:
SOURCE\WINAPI\DC.C
See Also:
ReleaseDC
CreateDC
DeleteDC
hDC
BeginPaint
EndPaint
SetMapMode
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson