Thread View: comp.os.ms-windows.programmer.misc
2 messages
2 total messages
Started by Peter Murray
Wed, 27 Jan 1993 23:06
HELP: String in Edit Cntl
Author: Peter Murray
Date: Wed, 27 Jan 1993 23:06
Date: Wed, 27 Jan 1993 23:06
21 lines
1162 bytes
1162 bytes
I am trying to display a string of text in a multiline edit control within a dialog box. The string contains standard C formatting characters such as '\t' and '\n'. The formatting works OK in MessageBoxs but will not display in the edit control. All that is displayed is one long line with a few square bars where the formatting characters are. Any tips would be very much appreciated. Thanks. +-----------------------------------------------------------------------+ | Peter C. Murray | pcm@scammell.ecos.tne.oz.au | | Telecom Mobiles | | | Information Technology Development| | | Information Technology Group | | | Telecom Australia | | +-----------------------------------------------------------------------+
Re: HELP: String in Edit Cntl
Author: Scott McLoughlin
Date: Thu, 28 Jan 1993 01:25
Date: Thu, 28 Jan 1993 01:25
6 lines
817 bytes
817 bytes
To display line breaks in a multiline edit control, you have to use the old #13#10 DOS combination. \n alone will not work (as you have just discovered). Welcome to windows. Scott McLoughlin [ This cutesy message intentionally left blank. ]
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads