Jump to content
  • Advertisement
Sign in to follow this  

Win32 Edit box Newline Constant !

This topic is 4134 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

So what i need to know is there a newline constant for win32 edit boxs? im creating a mud and i can paras strings togther fine but rather then it all being on the same line id like to break it up and make it look presentable !

Share this post


Link to post
Share on other sites
Advertisement
I seeemingly may have forgoten to mention im doing this is C++

sprintf(DisplayBuffer,"%s Server DC!",Buffer);

id like to put a break before the %s part but \n dosent seem to have an affect i set the text like so
SendMessage(MainEdit, WM_SETTEXT, 0, (LPARAM) DisplayBuffer);

Share this post


Link to post
Share on other sites
You need to make sure the edit control is set up as a multiline edit control. You simply must apply the following styles:

ES_WANTRETURN | ES_MULTILINE

You can then include "\r\n" in your strings to span lines.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!