Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiline 2

Status
Not open for further replies.

bubak

Programmer
Jun 25, 2001
208
SK
I want to have multiline editbox (using CEdit), but when I press enter, OnOK is done, instead of newline in editbox.
How do I do that?
 
I have done it in the past with PreTranslateMessage with

if pMsg is WM_KEYDOWN and if that is true if the key = VK_RETURN (or VK_ENTER... i forget)

Matt
 
In the Edit control properties, select "Styles" tab, check "Want return" check box.

HTH
Shyan
 
cool, I'm catching messages (zyren's way ;-), but this is cool.thx guys
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top