CompuServe Thread

Formatted text in CEdit

3 messages in this thread
#30326From: Barry E. KingJul 8, 1994 5:31 PM
I wish to place text into a CEdit (MLE) object with control over where linebreaks occurr. So far I have not had any success. I've tried to draw on OS/2 experience to solve this problem but them Windows MLE is adifferent beast than its OS/2 counterpart. I figured that some combination of CR and/or LF would do the trick but it doesn't appear to work. Could someone please detail the correct method to accomplish this simple task in MFC? Thanks, Barry
#30469From: Thomas Zeisluft [MVP]Jul 11, 1994 3:21 AM
Barry, linebreaks in an edit control are forced by "\r\n". You can add soft line breaks with "\r\r\n". HTH ThomasZ
#30512From: Barry E. KingJul 11, 1994 10:36 AM
Thanks for the suggestion. I thought I had tried that. I apparently had not since it worked first time… Barry