Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>releasedc()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
ReleaseDC()
Release access to a device for drawing purposes
------------------------------------------------------------------------------

Syntax
ReleaseDC( <hWnd>, <hDC> )   -->   lSuccess

Arguments
<hWnd> is the handle of the window.

<hDC> specifies the device context for a window.

Returns
If successful, logical TRUE (.T.) is returned, otherwise FALSE
(.F.) is returned.

Description
Drawing in Windows is done using GDI (graphics device
interface) functions, which require a handle to a device
context.  This function frees a device context that was
obtained using GetDC().

Example
// Draw a frame
hDC = GetDC( hWnd )
FrameRect( hDC, 100, 100, 200, 200, hBlueBrush )
ReleaseDC( hWnd, hDC )


See Also: GetDC()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson