-
Handling Keystrokes
Hi All!
I've a problem : Into an application I'm developing, I need to check if a
key (or a key set) is pressed and handle this event.
Well : I can now capture the event "key_is_pressed", but I can't avoid the
event this pression generates.
For Example : If an user on W98 presses the keys CTRL+ALT+Canc I receive
from my application an error status, and I show a dialog like "what do you
do?". So, All seems ok but, after the Dialog has been shown, I can't avoid
the visualization of the task-list window.
How Can I do?
N.B : that's only an example : the same problem was encountered while monitoring
the status of ALT+F4 or CTRL+Esc etc.etc...
Thanx All
Alessio
-
Re: Handling Keystrokes
You have to read about SetWindowsHookEx
Mike
www.exontrol.com
"Alessio" <alessio_r@libero.it> wrote:
>
>Hi All!
>I've a problem : Into an application I'm developing, I need to check if
a
>key (or a key set) is pressed and handle this event.
>Well : I can now capture the event "key_is_pressed", but I can't avoid the
>event this pression generates.
>For Example : If an user on W98 presses the keys CTRL+ALT+Canc I receive
>from my application an error status, and I show a dialog like "what do you
>do?". So, All seems ok but, after the Dialog has been shown, I can't avoid
>the visualization of the task-list window.
>How Can I do?
>
>N.B : that's only an example : the same problem was encountered while monitoring
>the status of ALT+F4 or CTRL+Esc etc.etc...
>
>Thanx All
>
>Alessio
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks