How do I wrap text in Editbox?
-
Hello, I have embedded an Edit box in my dialog during design time with styles 'Multiline', 'Horizontal Scroll' and 'Vertical Scroll'. During runtime, I set text to this edit box with SetWindowText. The set text extends the dimensions of the edit box and so I want the text to be wrapped dynamically. How could I achieve this ? Note : I also tried changing the styles to 'Auto HScroll', 'Auto VScroll', etc. Thanks in advance.
-
Hello, I have embedded an Edit box in my dialog during design time with styles 'Multiline', 'Horizontal Scroll' and 'Vertical Scroll'. During runtime, I set text to this edit box with SetWindowText. The set text extends the dimensions of the edit box and so I want the text to be wrapped dynamically. How could I achieve this ? Note : I also tried changing the styles to 'Auto HScroll', 'Auto VScroll', etc. Thanks in advance.
-
Hello, I have embedded an Edit box in my dialog during design time with styles 'Multiline', 'Horizontal Scroll' and 'Vertical Scroll'. During runtime, I set text to this edit box with SetWindowText. The set text extends the dimensions of the edit box and so I want the text to be wrapped dynamically. How could I achieve this ? Note : I also tried changing the styles to 'Auto HScroll', 'Auto VScroll', etc. Thanks in advance.
Try calling CEdit:FmtLines(TRUE) on your control.