How to print string in next line on Edit control
-
Hi, I have created a multi line edit control and assigned a member variable say m_strOutput... when i do m_strOutput += _T("\n") expecting the next time string to be printed in next line , the string is not printed in next line but appended to previous string.... How to go to next line in edit control????
-
Hi, I have created a multi line edit control and assigned a member variable say m_strOutput... when i do m_strOutput += _T("\n") expecting the next time string to be printed in next line , the string is not printed in next line but appended to previous string.... How to go to next line in edit control????
sribachana wrote:
when i do m_strOutput += _T("\n")...
Have you tried
\r\n
instead?"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
-
Hi, I have created a multi line edit control and assigned a member variable say m_strOutput... when i do m_strOutput += _T("\n") expecting the next time string to be printed in next line , the string is not printed in next line but appended to previous string.... How to go to next line in edit control????
you should try to do this: m_strOutput+=_T("\r\n") :)
-
sribachana wrote:
when i do m_strOutput += _T("\n")...
Have you tried
\r\n
instead?"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
yes i tried that also but no result
-
yes i tried that also but no result
Does the control have the
ES_MULTILINE
style?"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch