GetDC(NULL) seems is not Vista compatible anymore, in order to retrieve desktop screen.
What could i use instead ? Thanks
Printable View
GetDC(NULL) seems is not Vista compatible anymore, in order to retrieve desktop screen.
What could i use instead ? Thanks
Define "not Vista compatible". Do you get some errors / error messages? Which ones? Where and how?
I have a form to magnify screen while the user moves the cursor. This code works well on xp but it flickers non-stop on vista. It seems that getdc(null) behaves in a different way on this OS and leads to flicker. Please look at
http://bit.ly/fBf9nh
I don't have a solution yet so let's try to elaborate more.
I have a form to magnify desktop on real time, with WS_EX_LAYERED extended style. Then I call SetLayeredWindowAttributes to set the opacity to full opacity. Well this worked right in xp but in vista it remains grey. Could this be due to getdc(null) ? I've read that this way of retrieving dc screen is problematic in vista and w7.
Have a look at http://msdn.microsoft.com/en-us/library/bb756969.aspx