You have to check for WM_CHAR and suppress the newline character(s) when they're sent. These message is generated by TranslateMessage, but the WndProc is called by DispatchMessage so assuming you...