Skip to main content
gamedev.net
🔒 Locked

Win32 Edit Boxes

Started by CoiN 1 reply 150+ views
Original Post
CoiN
CoiN
Lo All, I''m new to win32 so bare with me. I am trying to make a simple client for my chat server, and I need help with a couple of little things. How would I make the strs I am sending to my output Edit Box start on a new line (like using the ''\n'' in the console)? Rather than just writing over the previous string. And how would I clear an Edit box? Any ideas? Thanks in Advance... CoiN
Burning_Ice
Burning_Ice
Hi

you can do this easiest by having some long buffer that gets updated (text appended to it) and then everytime it is updated you set the whole buffer as the new editbox text.
you make linebreaks with "\r\n"
and clear it by just sending an empty string as the new text



Runicsoft -- home of my open source Function Parser and more

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.