Advertisement

Keyboard events

Started by February 19, 2002 10:10 AM
0 comments, last by kra 22 years, 10 months ago
Hi, i''m experiencing troubles when i try to get Keyboard events in my MFC apps. I got, a class that overrides CDialog, when I override the keyboard events methods (something like onKeyPressed), those methods aren''t called (i tried a AfxMessageBox) when i press my keyboard. I''ve programmed a little bit in JAVA, and found the same problem, wich was solved by adding a TextField and setting the focus on it, is it the same problem? If so, how can i permanently set the focus on a ''hidden'' text field? thanks
What exactly are you trying to do? Usually when you type something in a dialog it goes into one of the controls. In this case, the control (like edit box) handles the keyboard message, and your dialog doesn''t get it.
---visit #directxdev on afternet <- not just for directx, despite the name

This topic is closed to new replies.

Advertisement