Print Page | Close Window

add a null character '\n'

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=15456
Printed Date: 29 April 2024 at 4:21am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: add a null character '\n'
Posted By: suchout
Subject: add a null character '\n'
Date Posted: 26 October 2009 at 1:40am
Hi
 
this is my code:
   - MainFrame-
   CXTPOfficeBorder<CEdit> wndMessages;
   wndMessages.SetWindowTextW(CString("New FrameWork Start"));
 
 
   -App-
   CString str(_T("abcd")), msg(_T("")); 
   pFrame->m_wndMessages.GetWindowTextW(msg);              
   msg += '\n';       
   msg += str;
   pFrame->m_wndMessages.SetWindowTextW(msg);
 
 
 
i don't know why show that character (looks like | ), i append null character '\n' .....
 
because unicode??? hm....
 
in that case,  what is the new line character in unicode ?
 
 
 



Replies:
Posted By: Oleg
Date Posted: 26 October 2009 at 3:32am
you need added ES_MULTILINE style for edit.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: suchout
Date Posted: 26 October 2009 at 5:15am
Hi,
 
ㅠㅠ
 
i already added that, like this
 
       m_wndMessages.Create(WS_CHILD |
       ES_AUTOVSCROLL | ES_MULTILINE | ES_READONLY,
       CRect(0, 0, 0, 0), this, 0);
 
would you please teach me about using unicode's new line  character?


Posted By: suchout
Date Posted: 26 October 2009 at 5:44am

Oops~

 
it's my fault!
 
msg += '\n';    -->  msg.AppendFormat(_T("\r\n")); 
 
it's OKay! ^^
 
thank you~ ver~y Mu~ch
 
 
 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net