开发者

Creating a multi-lined textbox/textfield in C++, not VC++

开发者 https://www.devze.com 2023-03-11 07:32 出处:网络
I was wondering how to create a text box that can respond to the \"enter\" key and create a new line just like the field I am typing in now.

I was wondering how to create a text box that can respond to the "enter" key and create a new line just like the field I am typing in now. Cre开发者_Python百科ateWindow ("edit", 0, WS_CHILD | WS_VISIBLE | WS_BORDER, 5, 5, 130, 20, hwnd, (HMENU) 1000, GetModuleHandle (NULL), NULL); That is what I have currently, but when I create it, it is a tiny strip and when I press the "Enter" key, it does not jump down to the next line like a paragraph. Any ideas? I am using C++ not VC++ or any .net framework and I am on Windows 7. Thank you.


You need to use the "ES_MULTILINE" flag. See Edit Control Styles

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号