![]() |
add a null character '\n' |
Post Reply
|
| Author | |
suchout
Groupie
Joined: 29 September 2009 Status: Offline Points: 13 |
Post Options
Thanks(0)
Quote Reply
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 ?
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 26 October 2009 at 3:32am |
|
you need added ES_MULTILINE style for edit.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
suchout
Groupie
Joined: 29 September 2009 Status: Offline Points: 13 |
Post Options
Thanks(0)
Quote Reply
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?
|
|
![]() |
|
suchout
Groupie
Joined: 29 September 2009 Status: Offline Points: 13 |
Post Options
Thanks(0)
Quote Reply
Posted: 26 October 2009 at 5:44am |
|
Oops~ it's my fault!
it's OKay! ^^
thank you~ ver~y Mu~ch
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |