This ATL control demonstrates subclassing existing windows controls. It subclasses an edit control and captures the WM_CHAR message. Notice that it only allows alphanumeric characters to be entered.
>