teleplayr
April 20th, 2003, 01:57 PM
I have an app in which I'd like to use F10 for something. The problem is, everytime I hit F10, it acts like ALT and focus goes up to the menu bar.
I'm looking for a way to disable this behavior for my entire app. There can be many windows open in different combinations.
The only thing I can think of is setting a keyboard hook, but that seems a long way to go to use F10, and since I want it to happen for all my windows, it would get cumbersome.
I'm using GetAsyncKeyState to test whether F10 is pressed, and that works fine. It's just the window loses focus at the same time.
Help is greatly appreciated :) Thanks!
-Joe
I'm looking for a way to disable this behavior for my entire app. There can be many windows open in different combinations.
The only thing I can think of is setting a keyboard hook, but that seems a long way to go to use F10, and since I want it to happen for all my windows, it would get cumbersome.
I'm using GetAsyncKeyState to test whether F10 is pressed, and that works fine. It's just the window loses focus at the same time.
Help is greatly appreciated :) Thanks!
-Joe