Help with device context please =>
-
i'm using GetWindowDC(NULL) to retrieve the device context for the entire screen, is there any way to retrieve the device context for the entire screen without my dialog in it ? thanx:rose:
if your doing it from within your app use the ShowWindow() first to hide it ... then do the grabscreen thing ... then reshow ur app if ur doing it manually of course just minimize ur app before u grab the screen ;)
"... and so i said to him ... if it don't dance (or code) and you can't eat it either f**k it or throw it away"
sonork: 100.18128 8028finder.com -
if your doing it from within your app use the ShowWindow() first to hide it ... then do the grabscreen thing ... then reshow ur app if ur doing it manually of course just minimize ur app before u grab the screen ;)
"... and so i said to him ... if it don't dance (or code) and you can't eat it either f**k it or throw it away"
sonork: 100.18128 8028finder.com -
I don't think there is an actually a way to do that. Once your app is drawn to the screen your app will be in that DC. Other than what Lauren suggested is what I would of done but I don't know exactly what you want. If you find a way I like to know how you did it.:)
-
if your app must be visible at all times how can u grab the screen without it? sounds a bit impossible to me philisophically speaking ... however ... all i can think of is then that you grab the screen then get ur apps window co-ordinates and fill the screen area in with a best guess of what it contains (wallpaper, color, etc) otherwise im at a loss sorry
"... and so i said to him ... if it don't dance (or code) and you can't eat it either f**k it or throw it away"
sonork: 100.18128 8028finder.com -
if your app must be visible at all times how can u grab the screen without it? sounds a bit impossible to me philisophically speaking ... however ... all i can think of is then that you grab the screen then get ur apps window co-ordinates and fill the screen area in with a best guess of what it contains (wallpaper, color, etc) otherwise im at a loss sorry
"... and so i said to him ... if it don't dance (or code) and you can't eat it either f**k it or throw it away"
sonork: 100.18128 8028finder.com