When I press the PrintScreen Key during my DirectX Programs, I don't get the current screenshot in my clipboard. Why is it so?
Even if you press the PrintScreen button, it's only when you reach the message-pumping functions (GetMessage & TranslateMessage) that the DisplayFrontBuffer will be transfered to the ClipBoard. Thus if you are using a function that displays an animation of a scene before a message-pump you will only get the last frame of the animation by pressing PrintScreen. To solve this problem use a screen-capture function inside your animation function that will help you to capture any of the in-between frames through a key press( Attach the sample header "CapScrn.h" to your header and call the "SaveScreenshot" function with the window handle and desired window width and height of capture). On the other hand you can also play your animation frame in each message-pump and thus copy the desired display front buffer to the clipboard.FAQ Menu
Sponsored links
Build IT Knowledge with Current & Trusted Content
Helps Employees Develop & Hone New Technical Programming Skills. Sign Up & Get Full Access.
Helps Employees Develop & Hone New Technical Programming Skills. Sign Up & Get Full Access.
Check Out IT Certification Preparation Materials
Sign Up With SkillSoft & Get Access to Training Materials for Over 50 Professional Certifications.
Sign Up With SkillSoft & Get Access to Training Materials for Over 50 Professional Certifications.
Six Sigma Certification
100% Online-Six Sigma Certificate from Villanova - Find Out More Now.
100% Online-Six Sigma Certificate from Villanova - Find Out More Now.
SSH and SFTP support for .NET
Add complete SSH and SFTP support to your .NET framework application
Add complete SSH and SFTP support to your .NET framework application
3 Months Free - ASP.NET Web Hosting
3 Months Free & No Setup Fees on ASP.NET 3.5/2.0 Hosting on Windows 2008/2003 Servers ? Click Here!
3 Months Free & No Setup Fees on ASP.NET 3.5/2.0 Hosting on Windows 2008/2003 Servers ? Click Here!
