Wrapping text in text box or edit box 
Author Message
 Wrapping text in text box or edit box

Hi,

Can any body tell me how to wrap text in a static text box or an edit box.

Thank you.
Sachil.



Sun, 07 Mar 2004 18:45:49 GMT  
 Wrapping text in text box or edit box
Are you talking about word-wrap in the middle of lines?
Quote:

> Hi,

> Can any body tell me how to wrap text in a static text box or an edit box.

> Thank you.
> Sachil.



Sun, 07 Mar 2004 21:45:34 GMT  
 Wrapping text in text box or edit box
For an edit box you need to set the EX_MULTILINE style. Word wrapping is then
automatic. You can force a newline by inserting \r\n into the text.

For a static text box things are a bit different. By default the style is set
to SS_LEFT, which will cause text to auto-wrap within the size of the control.
You can force a new line within that string with only a \n.

Quote:

> Can any body tell me how to wrap text in a static text box or an edit box.

Jim [VC/MFC MVP]
To send mail, change spam-me-not to msn


Sun, 07 Mar 2004 23:18:59 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. list box text to edit box

2. Metafiles and MFC - wrapping text in a box

3. Metafiles and MFC - wrapping text in a box/GetTextExtent

4. Change the background color of a dialog box and change text color of Edit Box, Static Text, Rich Edit

5. rich text box flashes when editing

6. edit boxes and text field lengths

7. Text Color In Disabled Edit Boxes

8. Showing Edit box text selected

9. Displaying text in an Edit Box

10. Displaying text in Edit Box

11. How can I send more than one line of text to Edit Box control

12. Highlight Text in Edit Box

 

 
Powered by phpBB® Forum Software