dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Is it possible to get a screen capture on windows 7 without capturing its own window?

  1. #1
    Join Date
    Dec 2010
    Posts
    114

    Is it possible to get a screen capture on windows 7 without capturing its own window?

    If I use GetDesktopWindow(), it includes the window which starts the capturing, I don't want to include that window. Just everything except the firing program. how can I achieve this?
    thanks
    Jack

  2. #2
    Join Date
    Nov 2003
    Location
    Belgium
    Posts
    8,119

    Re: Is it possible to get a screen capture on windows 7 without capturing its own win

    One option is to hide your window right before you do the capture.
    Also, did you check out this article: https://docs.microsoft.com/en-us/win...uring-an-image
    Another option might be PrintWindow(): https://docs.microsoft.com/en-us/win...er-printwindow
    Marc Gregoire - NuonSoft (http://www.nuonsoft.com)
    My Blog
    Wallpaper Cycler 3.5.0.97

    Author of Professional C++, 4th Edition by Wiley/Wrox (includes C++17 features)
    ISBN: 978-1-119-42130-6
    [ http://www.facebook.com/professionalcpp ]

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)