Keyboard event in Dialog Box
-
I am using WM_KEYUP event for Dialog Box. The event doesn't register. I am looking for some simple VC++ code to get keyboard event in the Dialog Box. Regards Smith Smith
-
I am using WM_KEYUP event for Dialog Box. The event doesn't register. I am looking for some simple VC++ code to get keyboard event in the Dialog Box. Regards Smith Smith
I tried the same thing a while back. And it does seem that WM_KEYUP messages do not get processed. Who knows? A solution to your problem is a simple keyboard hook. This makes it very reliable to get all keyboard messages back. All it involves is a simple call to SetWindowsHookEx and a call back function for the handling the keyboard messages. Here's a link to a code project article that answers this problem... http://www.codeproject.com/dll/keyboardhook.asp?target=keyboard%7Chook