Do anybody know how to take the screenshot of a message box in c/c++ win32 API? the program should be able to display any messag box, take it's snap and save in a bitmap or any other file. Please help
Screenshot of a messagebox in win32
the key combination ALT+printscreen should take a snapshot of the active window... in MS
"SendInput" and "keybd_event" seem to be part of the windows API.
so you could try to send the key combination Alt+prntscreen and you should have a copy of the active window in the clipboard.
I hope this helps, srry, I'm not good enough with C++ to provide a working example.
cheers
"SendInput" and "keybd_event" seem to be part of the windows API.
so you could try to send the key combination Alt+prntscreen and you should have a copy of the active window in the clipboard.
I hope this helps, srry, I'm not good enough with C++ to provide a working example.
cheers
I think that takes the screenshot of whole screen. I only need to take screenshot of the message box
printscreen alone does that.
but if you hold the Alt button down and hit printscreen it gets the Active/seletected window.
and a Win32 messagebox is a window...
check it on wikipedia
it says:
but if you hold the Alt button down and hit printscreen it gets the Active/seletected window.
and a Win32 messagebox is a window...
check it on wikipedia
it says:
| Quote: |
| In Microsoft Windows, pressing print screen will capture the entire screen, while pressing the alt key in combination with print screen will capture the currently selected window. |
Related topics
