CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2004
    Posts
    1

    Reading the display of another window

    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

  2. #2
    Join Date
    Apr 2002
    Posts
    86
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured