Windows controls and keyboard handling - TechRepublic
General discussion
July 8, 2003 at 11:18 PM
avhohlov

Windows controls and keyboard handling

by avhohlov . Updated 22 years, 5 months ago

I have Win32 application with main window (WndPros – it’s window procedure) and some child controls in it (EDIT’s, BUTTON’s, my own controls). All windows are created by CreateWindow calls. What is correct way to handle UpArrow/DownArrow/PgUp/PgDn/Tab and some other keys presses in WndProc when one of child controls (EDIT, for example) has input focus?
Now I use translation of WM_KEYDOWN to WM_COMMAND in message loop (GetMessage/My Translation/TranslateMessage/DispatchMessage).How I can handleWM_KEYDOWN directly in WndProc?
Thanks

This discussion is locked

All Comments