The Woes of PrintWindow().

Blitz3D Forums/Blitz3D Userlibs/The Woes of PrintWindow().

GA(Posted 2006) [#1]
I've been trying to implemt the funtion PrintWindow() (introduced in XP to user32.dll) to capture the Active Forground window, which is partially off screen and save it as a bitmap or as a blitz image. Hopefully this will return the whole window and not just the part that is visable.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/prntspol_6qpj.asp

However, try as I might using the examples of desktop capture in the code archives as a base, I can't seem to make this function work, mainlly due to my complete lack of understanding of DC's.

Any help would be very much appreciated.


markcw(Posted 2006) [#2]
hi, try this (link from "Sparkie")

http://www.fengyuan.com/article/wmprint.html


kfprimm(Posted 2006) [#3]
You could just enable the Print Screen key. Probably be whole lot easier.