How do I prevent an edit control in multiline mode from hiding partial lines of text?

266 views Asked by At

I have a scrollable multi-line edit control (class EDIT, with ES_MULTILINE and WS_VSCROLL/ES_AUTOVSCROLL) which is sized according to the size of its container. As a result, often the height of the control is not an exact multiple of the height of a single line of text. If the control contains more text than will fit in its area, it will only show as many lines as it can show fully--the next line, which could be shown clipped, is instead entirely hidden.

This is confusing to users who may not notice that there is a scrollbar, thinking that the empty space at the bottom of the control indicates that there is no more text.

How can I create a multi-line text control of some sort which does not exhibit this behavior? I am able to include a DLL and use a third-party control if that is required.

0

There are 0 answers