If you subclass the edit box, you can pick up the WM_KEYDOWN and WM_KEYUP messages (or indeed any other message), and process them. This article[^] shows how to capture key strokes to create a numeric-only edit box, but it shows how to capture the messages, process them, and then pass them on to the parent window, which is what you'll need to do, I would think.