You do not need the ES_MULTILINE
, ES_AUTOVSCROLL
or ES_WANTRETURN
style flags.
To stop a single-line edit control from beeping on VK_RETURN
you need to handle the WM_CHAR
message for that control and return 0 for VK_RETURN
without calling the default window procedure, which has to be called for all other keys.