-
February 19th, 2011, 10:24 AM
#1
GetDC(NULL) fails on Vista
GetDC(NULL) seems is not Vista compatible anymore, in order to retrieve desktop screen.
What could i use instead ? Thanks
-
February 19th, 2011, 01:48 PM
#2
Re: GetDC(NULL) fails on Vista
Define "not Vista compatible". Do you get some errors / error messages? Which ones? Where and how?
Victor Nijegorodov
-
February 19th, 2011, 05:55 PM
#3
Re: GetDC(NULL) fails on Vista
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
-
February 23rd, 2011, 12:16 PM
#4
Re: GetDC(NULL) fails on Vista
Originally Posted by chals1
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.
-
February 23rd, 2011, 12:43 PM
#5
Re: GetDC(NULL) fails on Vista
Victor Nijegorodov
-
February 23rd, 2011, 02:17 PM
#6
Re: GetDC(NULL) fails on Vista
Originally Posted by VictorN
Thanks!! So i'll try to place a translucent form on top of the screen, with alphaBlend equal to one.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|