CView/ new line
C / C++ / MFC
3
Posts
2
Posters
0
Views
1
Watching
-
How do I display rows of text?
CString testString; testString = "Test!"; testString +="\\r\\n"; testString +="Test Again"; pDc->TextOutA(0,0,testString.GetBuffer(),testString.GetLength()); testString.ReleaseBuffer();
This displays text as
Test!||TestAgain.
And not like
Test!
Test AgainWhat should I do? Also, when I'm reading text from file, how do I control the newline?
---------------------------- 286? WOWW!:-O
-
How do I display rows of text?
CString testString; testString = "Test!"; testString +="\\r\\n"; testString +="Test Again"; pDc->TextOutA(0,0,testString.GetBuffer(),testString.GetLength()); testString.ReleaseBuffer();
This displays text as
Test!||TestAgain.
And not like
Test!
Test AgainWhat should I do? Also, when I'm reading text from file, how do I control the newline?
---------------------------- 286? WOWW!:-O
_8086 wrote:
pDc->TextOutA
Use
DrawText
instead ofTextOut
.
Nibu thomas A Developer Programming tips[^] My site[^]
-
_8086 wrote:
pDc->TextOutA
Use
DrawText
instead ofTextOut
.
Nibu thomas A Developer Programming tips[^] My site[^]