   win 32 edit boxes
  How can you use the multiline edit boxes to make the multiple lines? Because I try to use SetWindowText but I noticed that function resets the window every time I am trying to make what clone cd has as log window and what quake also has so I can send a message to the edit box and that that will be on an extra line. 
  well, if you need the newline character, in win32 its \r\r\n (someone else said its \r\n but u can try both... ) hope that helps, from there you should be able to figure it out ;  Make sure to create it with the ES_MULTILINE style, and probably the ES_AUTOVSCROLL is a good idea also. ;  You can also use PostMessage() in order to add information to an edit box.  And IIRC, you have to move the current selection to the end of the box before adding text or else it gets overwritten. ;quote:Original post by Ademan555  well, if you need the newline character, in win32 its \r\r\n (someone else said its \r\n but u can try both... ) hope that helps, from there you should be able to figure it out   It''s just \r\n. Proof: VB''s constant for a newline is vbCrLf (carriage return, line feed).   Colin Jeanne | Invader''s Realm;  umm.... \n isnt carriage return OR line feed, its both... and also, just because VB does it one way doesnt mean c++ is gonna be the same... the languages are wildly different, im not saying im right im just saying... and besides, just try it and see if \r\n works, if it does... then great, if not, use \r\r\nthats all... ;quote:Original post by Ademan555  umm.... \n isnt carriage return OR line feed, its both... and also, just because VB does it one way doesnt mean c++ is gonna be the same... the languages are wildly different, im not saying im right im just saying... and besides, just try it and see if \r\n works, if it does... then great, if not, use \r\r\nthats all...   This is not a part of the language, it is a part of the OS. And \n represents a line feed not a carriage return.However, based on this we are both right: \r\r\n is a soft line break while \r\n is a hard line break. Soft line breaks are inserted at the end of a line when it is broken by word wrapping.   Colin Jeanne | Invader''s Realm;  Tnx for all the answers but it still doesnt work I know you can get next line with /r/n but one mentioned you need to go to the end of the text else all gets rewritten how do you do that.I am working with c++ not vb. 