Creating a multi-lined textbox/textfield in C++, not VC++
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
精彩评论