anyKode Marilou
ContentsIndexHome
PreviousUpNext
Image::GetScreenHDC

GetScreenHDC makes it possible to obtain the HDC of windows desktop for direct screen drawings.

C++
HDC GetScreenHDC(void);

the windows desktop HDC of foreground (see Windows documentation).

GetScreenHDC 's first call obtains the windows desktop HDC and returns it. Next requests will always return this HDC. The HDC captured by the instance is automatically released at the object destruction.

  • In general, the HDC do not support screen properties changes. In this case, the HDC of the instance becomes invalid.
  • The user's program must not call DeleteDC or ReleaseDC on the HDC returned by GetScreenHDC.
Documentation v4.7 (05/03/2011), Copyright (c) 2011 anyKode. All rights reserved.
What do you think about this topic? Send feedback!