I've searched this site, MSDN, and various other sites, but I still can't find any good tutorials on how to implement keyboard input. I thought I understood how it worked vaguely, but no matter how I try to implement tabbing in my app, my sytstem just beeps at me. It's not the like the code doesn't compile, I just can't register the tab key. According to MSDN, tabbing is a feature handled by DefWndProc(); but I've found this to be untrue.
So far I've tried various ways, but this is my best approach. I include this statement in the WndProc Callback:
I was going to use this appraoch along with the GetNextDlgTabItem(); function and the WS_TABSTOP flag. But it still just beeps, beeps, beeps at me! I'm going madCode:switch: (message) { case WM_KEYDOWN: { int vKey = (int)wParam; if(vKey == VK_TAB) { OnDestroy(); //to test the validity of my statement } return TRUE; } }![]()
The code is quite long so I'll post it if you want to take a look. Yes, I borrowed the frame from Ken Fitlike. My thanks to him. Yes, But I mostly understand what's going on in the code as you'll see through my implementation of other features. If anyone can explain what I'm missing I'd appreciate it.



LinkBack URL
About LinkBacks




But can you tell me why I'm having such a hard time overriding the virtual keys? I thought they were stored in wParam as well... are they LOWORD too?