Dave's Brain

Browse - Programming Tips - Why isn't my multiline edit control working?

Date: 2013jun11
Platform: Win32
OS: Windows

Q.  Why isn't my multiline edit control working?

A.  You probably forgot the ES_WANTRETURN option.  It indicates
that the control should capture carriage returns (CRs).
It does *not* set if the control should return a result or something like that.
This works:

EDITTEXT IDC_THE_TEXT,130,58,299,68,ES_MULTILINE | ES_AUTOHSCROLL | ES_WANTRETURN

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.