Click here to Skip to main content
12,397,805 members (49,676 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: VC8.0 C++ C# WPF
1. I have written a code in VC as well as in C# for screen capture but it is not able to capture WPF window in screen shot?

2. If I press print screen button on keyboard then WPF window is captured, can be seen in bitmap on windows clipboard.

But application written in VC or C# is unable to capture WPF window in screen shot why??????

Any solution to this ???? :(
Posted 30-Dec-10 17:18pm
Updated 5-Jan-11 1:06am
v3
Comments
Lloyd Atkinson 31-Dec-10 18:36pm
   
Probably one of the most useless comments I've ever seen in QA.
SAKryukov 31-Dec-10 0:46am
   
????

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Take a look at this - it's probably why you don't get the WPF output
Desktop Window Manager[^]

Here is one way to do it:
http://spazzarama.wordpress.com/2009/02/12/screen-capture-with-vista-dwm/[^]


Regards
Espen Harlinn
  Permalink  
Comments
prasad@codeproj 5-Jan-11 7:13am
   
Thank you very much Espen, I got the answer now. I have not yet able to use the code I got with the second link given in answer. I built it but dont know exactly how to use it. But anyways thank you very much once again for helping.

With Regards,
Prasad.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160721.1 | Last Updated 5 Jan 2011
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100