Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Input the window's handle and print to the device.
PS: I have tried to use PrintWindow() API,but when the application is minimun,the picture is pure black and I think the reason for that phenomenon is that the OS hasn't storage the Interface data. I wonder if there are some API to get the application interface when the application is not in the front of the screen even is minumum.

Sorry for my poor English and I feel great grateful for your help and attention.
Posted
Comments
wb_program 15-Apr-11 7:54am    
I have tried ShowWindow following what you have told me,but I can see a flash on the screen.Is it avoidable?I intended to get the Interface "quitely",just like the application is not minumum.
I am really appreciated for your kind help.

1 solution

Well, "print screen" does exactly that. Since the window is minimized, there's no presence on the screen, and you get a black image. You probably have to normalize (or maximize) the application in question, "print" the screen, and then return it to its minimized state.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900