Window Hook and Window Focus
Tue, 07/28/2015 - 02:02 pm
I am using the keys to toggle checkboxes instead of forcing the user to click with the mouse and that is working fine.
However if a key that is not trapped for in my hook is pressed it gets passed to the command window and the focus is shifted.
What do I need to do to prevent this and ignore the errant keystrokes and keep the focus on the main window.