Having trouble with edit control

Hello,

I'm having some trouble with the edit control. The problem is that I can't introduce as much text as I want; it is limited by the physical size of edit box.
For instance, wit this definition in a resource file:
1
2
3
CONTROL "", ID_TEXT, "EDIT",
    ES_LEFT | WS_CHILD | WS_VISIBLE | WS_BORDER  | ES_MULTILINE| WS_TABSTOP,
    36, 9, 76, 12

I can only introduce "012345678901234567".
I thought that I could solve this by sending EM_LIMITTEXT to the control, in fact I can limit the text, but only to sizes below the one shown above.

How can I solve this issue?
I'd help if you weren't trying to create a Windows program with resource scripts.
Is there anything wrong with doing that?
How should I proceed?
Try adding the ES_AUTOHSCROLL style. With a regular windows program with an edit control, once you type text to the end of the control, if you don't include that style, you won't be able to enter anymore. You are setting the width to 76 above, which won't allow many characters before stopping input, that is, if you don't add the style to allow for scroling text.

One of my hot buttons that sets me off is using the Windows Dialog Engine to create Windows programs instead of what it was designed for, and that is simple dialog boxes within the context of a parent Windows program.
Yes, adding the ES_AUTROHSCROLL style worked perfectly.

Thanks.
Topic archived. No new replies allowed.