#CEdit and Margins
08-Jul-94 02:00:36
Sb: #29813-#CEdit and Margins
Fm: Steve Dirickson 70313,3252
To: Kevin Maisano 72204,1011
<< Hi! I have a Multi-line CEdit control that I am trying to make perform like
a poor man's editor. Is there a technique by which I can set margins within
the edit control so that the text auto-wraps at the margin? At the margin I
would also like to insert a CR/LF combination when wrapping. Any help would be
greatly appreciated!>>
MLEs automatically do word-wrap. But you don't want to insert a CR/LF at a
break, because the wrap point will change if the window size changes. You only
want to insert line breaks when you read the wrapped text out of the MLE to
store it somewhere, like in a file.