11-22-2005, 10:09 AM
This is not easy because keyboard messages (WM_KEYDOWN and other) are posted to the control that has focus at that time. Dialog procedure does not receive these messages. You would have to install thread-specific hook, which requires one additional function that receives messages.