Click to See Complete Forum and Search --> : Reading the display of another window


tpengster
January 25th, 2004, 03:32 PM
How could I read the display / client area of another window, say, into a bitmap?

Hope the answer is not too obvious but I am just having trouble finding the right keywords to search because I haven't found anything close

Thanks

Myself dot NET
January 25th, 2004, 06:20 PM
You could try using FindWindow() to find the target window. Then use GetClientRect() to obtain the size of the client area, and GetDC() to get a device context handle. Then CreateCompatibleDC() and CreateCompatibleBitmap(), and finally BitBlt() the client area into the memory DC.