Trapping Print Screen Key

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
wisdomsedge
Knows some wx things
Knows some wx things
Posts: 26
Joined: Sat Feb 23, 2008 5:21 am

Trapping Print Screen Key

Post by wisdomsedge » Sun Nov 09, 2008 9:14 pm

Hello

Is there any way to intercept a Print Screen key press using wxWidgets? And either cancel it, or make some modifications before it actually takes a picture?

Thanks.
Michael.
OS: Windows XP Pro; Ubuntu
Compiler: MSVC++ 6.0; KDevelop
wxWidgets: 2.8.6

vsp
Knows some wx things
Knows some wx things
Posts: 35
Joined: Mon Feb 21, 2005 12:52 pm

Post by vsp » Mon Nov 10, 2008 1:13 pm

scan the WXK_PRINT key code in your OnKey or OnChar function and you can modify as per your requirement.

Post Reply