chandra_s
April 23rd, 1999, 02:50 PM
I need to trap WM_SYSKEYDOWN for each edit
control on a dialog and if ALT and a number is pressed , I need to ignore it.
This is in order to prevent special characters
from being entered in the edit boxes using
ALT+numeric keypad. How do I trap WM_SYSKEYDOWN
for each child control for a window in the window class? I can write WM_SYSKEYDOWN message handlers for each edit control but I don't want to do that as there are too many controls and too many dialogs. Better still, is there a way I can write a global Syskeydown handler that will handle system keys for the entire app and not just for a specific dialog? i.e. when the app is active, this handler will kick in and prevent the ALT+number key sequence.
I need to know this urgently. Any help/pointers will be greatly appreciated.
Thanks,
--Chandra
control on a dialog and if ALT and a number is pressed , I need to ignore it.
This is in order to prevent special characters
from being entered in the edit boxes using
ALT+numeric keypad. How do I trap WM_SYSKEYDOWN
for each child control for a window in the window class? I can write WM_SYSKEYDOWN message handlers for each edit control but I don't want to do that as there are too many controls and too many dialogs. Better still, is there a way I can write a global Syskeydown handler that will handle system keys for the entire app and not just for a specific dialog? i.e. when the app is active, this handler will kick in and prevent the ALT+number key sequence.
I need to know this urgently. Any help/pointers will be greatly appreciated.
Thanks,
--Chandra