Sep 6, 2001 #1 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 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?
Sep 6, 2001 1 #2 Zyrenthian Programmer Mar 30, 2001 1,440 US 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 Upvote 0 Downvote
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
Sep 6, 2001 1 #3 sflam Programmer Aug 13, 2001 69 US In the Edit control properties, select "Styles" tab, check "Want return" check box. HTH Shyan Upvote 0 Downvote
In the Edit control properties, select "Styles" tab, check "Want return" check box. HTH Shyan
Sep 6, 2001 Thread starter #4 bubak Programmer Jun 25, 2001 208 SK cool, I'm catching messages (zyren's way ;-), but this is cool.thx guys Upvote 0 Downvote