Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 14th March 2001, 15:36   #1
buzzc4
Junior Member
 
Join Date: Jan 2001
Posts: 4
Can a \r\n be inserted into a MessageBox's msgtext? I've tried it and it only appears plain text. I have a large message and right now it looks sort of ugly all spread out. Any one know how to do this?

Also btw, html code is on for this forum...dunno if that was intentional.
buzzc4 is offline   Reply With Quote
Old 15th March 2001, 19:57   #2
hoirkman
Senior Member
 
Join Date: Feb 2001
Posts: 171
use the ascii codes [pseudocode: chr(13)+chr(10)]. i guess this will work:

code:
char cr = 13; //carriage return
char lf = 10; //line feed

MessageBox(NULL, TEXT("text to display in line 1"+cr+lf+"text to display in line 2"), ...);



there could be problems with using the MFC CString class because there are differences between CString and char* in how the text is interpreted. try to use the windows api function ... maybe then it works without the code shown above
hoirkman is offline   Reply With Quote
Old 15th March 2001, 20:42   #3
Kaboon
Moderator
 
Kaboon's Avatar
 
Join Date: Jun 2000
Location: Netherlands
Posts: 2,485
Send a message via ICQ to Kaboon
Quote:
Originally posted by buzzc4
Also btw, html code is on for this forum...dunno if that was intentional.
Nope it wasn't. It's fixed allready. Thanks for warning us.
Kaboon is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump