I've been working on a project for the past month or so, and recently I decided to change the layout and turn the main window into a dialog. Before, I had four main edit controls. Now, there's only one, and I've given it all the same styles, etc, but in my new version, the edit control does not accept the Enter key through the WM_CHAR message like it did before. Even when I create the Edit control dynamically, instead of through the resource, using the exact same code as I did in the old version. The only thing different is that the parent is a dialog instead of a window. Does anyone know how I can intercept the user input from the Enter key.