Click to See Complete Forum and Search --> : Can i get the desktop device context in C++


Geriko
December 12th, 2006, 12:59 PM
I want to draw images directily to desktop with Draw function from imagelist class and i need desktop Hdc to use in draw parameter 1.


Any help is gratefull apreciate
Thank's

ovidiucucu
December 12th, 2006, 01:13 PM
Pass NULL to ::GetDC function (retrieve the DC for the entire screen).

JVene
December 12th, 2006, 02:10 PM
I've not done that, but is that really what you want to do?

What happens when the desktop (or portions of it) are invalidated, and a paint response is called for the desktop - your code won't be called for that, will it?

What you may prefer is to use a window that has no frame, and a transparent background, upon which you draw your artwork, and that is always underneath everything else.

Geriko
December 13th, 2006, 08:47 AM
Thanks all of you, but most for jVerne :D....you made me search in my "near" project not hoo knows were..., and i found a way to made my form transparent by setting the form background and transparentkey propreties to "white" and for my surprise works, i hope theat will help many too get thei form's transparent for "background events".

Thank's Again >>>>