Key Press Event
-
I have a GUI Activex Application . Now I want to get the key press event when focus is on any one of the window control ,i.e.text box , button , listcontrol slider control etc.
Rajesh
There are lots of ways to solve this... You could create events for all your controls. -- In the resource editor right click each control and select add "event handler". -- then in your code the event handler will appear and you'll be able to control what you want to do with it. If you need to do that for a lot of controls and the behavior should be the same extend a control class and pre-program it. You could also capture the WM_KEYDOWN message. -- Open the class assistant (CTRL+shift+X). -- messages tab. -- add the WM_KEYDOWN handler. You are done. Hope this helps.
[www.tamelectromecanica.com] Robots, CNC and PLC machines for grinding and polishing.