How can I detect when the Escape Key has been pressed when the focus is set to a child window, in my case an Edit Control?
I've tried WM_KEYDOWN and WM_CHAR but once the user starts typing in the edit box, the WM_KEYDOWN and WM_CHAR messages dont seem to be generated? or at least not to the main window.