How to get the whole view's screen shot when the view has scroll bar ?
-
Hello ,everybody ! I want to get the whole screen shot in the SDI project,then save it to a bitmap file. usually ,the shot just relative to the Device. I want get the whole view's screen shot ,whether the view is be hide by other window. Is there anyway ? Thanks for your reply !
-
Hello ,everybody ! I want to get the whole screen shot in the SDI project,then save it to a bitmap file. usually ,the shot just relative to the Device. I want get the whole view's screen shot ,whether the view is be hide by other window. Is there anyway ? Thanks for your reply !
Bring it to the front before taking the screen shot??
CQ de W5ALT
Walt Fair, Jr., P. E. Comport Computing Specializing in Technical Engineering Software
-
Bring it to the front before taking the screen shot??
CQ de W5ALT
Walt Fair, Jr., P. E. Comport Computing Specializing in Technical Engineering Software
Thanks ! your mean's than call some funtion to show at first. but I think this isn't the goodness. Is there other way ? :)
-
Thanks ! your mean's than call some funtion to show at first. but I think this isn't the goodness. Is there other way ? :)
As far as I know, when you do a screen shot, you get what is on the screen. If part of your content is hidden by other windows, then you need to bring it to the front to take a screen shot. If it is too large for the screen and is partially hidden because it has scrolled, then you have a different problem. Perhaps someone else has a better idea.
CQ de W5ALT
Walt Fair, Jr., P. E. Comport Computing Specializing in Technical Engineering Software
-
As far as I know, when you do a screen shot, you get what is on the screen. If part of your content is hidden by other windows, then you need to bring it to the front to take a screen shot. If it is too large for the screen and is partially hidden because it has scrolled, then you have a different problem. Perhaps someone else has a better idea.
CQ de W5ALT
Walt Fair, Jr., P. E. Comport Computing Specializing in Technical Engineering Software
It's ?
-
Hello ,everybody ! I want to get the whole screen shot in the SDI project,then save it to a bitmap file. usually ,the shot just relative to the Device. I want get the whole view's screen shot ,whether the view is be hide by other window. Is there anyway ? Thanks for your reply !
Koma Wang wrote:
Is there anyway ?
Yes, you can send the window the WM_PRINT[^] or WM_PRINTCLIENT[^] message and ask the win32k subsystem to paint into the device context you pass in the wParam. Not all windows support these messages (such as windows using DirectDraw) so your results may vary. Best Wishes, -David Delaune
-
Koma Wang wrote:
Is there anyway ?
Yes, you can send the window the WM_PRINT[^] or WM_PRINTCLIENT[^] message and ask the win32k subsystem to paint into the device context you pass in the wParam. Not all windows support these messages (such as windows using DirectDraw) so your results may vary. Best Wishes, -David Delaune
Thanks ! I have a try soon. :)