Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FiveWin 1.9.2 - January 97 - getdc() retrieves the handle of a device context http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 GetDC()                Retrieves the handle of a device context
--------------------------------------------------------------------------------

   Syntax:              GetDC( <hWnd> )  --> <hDC>

                        This function retrieves the handle of the device
                        context of the client area in the given window.

   Parameters:

   <hWnd>               The handle of the window.

   Returns:

   <hDC>                The handle of the device context.

   Observations:        You may think about a device context as a virtual
                        screen. Something similar when in MsDos we did
                        DispBegin() and DispEnd() with Clipper.

                        GetDC() it is like DispBegin(). Starts working
                        with a virtual screen. ReleaseDC() it is like
                        DispEnd(), and updates all painting to the
                        visible screen.

                        If you don't ReleaseDC() after you do a GetDC(),
                        you are unbalancing windows, and the system
                        finally crash!

   Source code:         SOURCE\\WINAPI\\DC.c

   See also:            ReleaseDC() CreateDC() DeleteDC()


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