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