| | |
New Lines in Visual C++ Multiline Edit Boxes?
Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Dec 2005
Posts: 45
Reputation:
Solved Threads: 0
Hmm.... I tried this:
The output is:
Hello!
Hello!|-
Hello!|-How are you?
Carriage return, line feed does make sense but it isn't working, at least not how I am implementing it in the above.
So I tried using both escape sequences /r/n which does make a newline.
C++ Syntax (Toggle Plain Text)
m_ChatText = "Hello!"; MessageBox(m_ChatText); m_ChatText += char(13) + char(10); MessageBox(m_ChatText); m_ChatText += "How are you?"; MessageBox(m_ChatText);
Hello!
Hello!|-
Hello!|-How are you?
Carriage return, line feed does make sense but it isn't working, at least not how I am implementing it in the above.
So I tried using both escape sequences /r/n which does make a newline.
![]() |
Similar Threads
- edit boxes (C)
- Handling Text from a multi-line edit box (win32api with c++) (C++)
- Extracting text from a multi-line Edit Box (win32api using c++) (C++)
- Subclassed Editbox Control: Do I need to create 2 subclasses for two edit controls? (C++)
- Problem pasting > 224 edit boxes in resources (C++)
- CEdit boxes and mulitplication (C++)
Other Threads in the C++ Forum
- Previous Thread: What am i doing wrong?! Please help :)
- Next Thread: While loop not ending when reading from file
| Thread Tools | Search this Thread |
api application array arrays based beginner binary c++ c/c++ calculator char char* class classes code compile compiler console conversion count delete deploy desktop directshow dll download dynamic dynamiccharacterarray encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory news number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg simple sorting string strings struct temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock wordfrequency wxwidgets





