Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - add a null character '\n'
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

add a null character '\n'

 Post Reply Post Reply
Author
Message
suchout View Drop Down
Groupie
Groupie


Joined: 29 September 2009
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote suchout Quote  Post ReplyReply Direct Link To This Post Topic: add a null character '\n'
    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 ?
 
 
 
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 26 October 2009 at 3:32am
you need added ES_MULTILINE style for edit.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
suchout View Drop Down
Groupie
Groupie


Joined: 29 September 2009
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote suchout Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
suchout View Drop Down
Groupie
Groupie


Joined: 29 September 2009
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote suchout Quote  Post ReplyReply Direct Link To This Post 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
 
 
 
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.