Jump to content
  • Advertisement
Sign in to follow this  
johnnyBravo

(cpp win32) How to make text entry like windows msn messenger?

This topic is 4440 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

Hi, I want to make a edit control like the textfield in windows msn messenger, where pressing 'enter' does not make a new line, and hitting 'shift + enter' does. I'm using sub classing so far to catch keypresses (so far doing nothing) from the edit control which uses the styles ES_MULTILINE and WS_VSCROLL, when pressing 'enter' it will create a new line. Thx

Share this post


Link to post
Share on other sites
Advertisement
the edit control in MSN messenger isn't a window. it's a windowless control. so basically if you want it just like that you have to program a bitmapped edit control from scratch.

Share this post


Link to post
Share on other sites
Either the Edit control or the RichEdit control will be able to do that just fine with the ES_MULTILINE style set. Pressing shift+enter inserts a \r, and pressing ctrl+enter inserts a \n. Pressing enter will cause a WM_COMMAND to be sent to the next control (I think).

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!