How can I get an Edit box to fill a window, no matter what the size of the window is?
How can I get an Edit box to fill a window, no matter what the size of the window is?
[Signature here. (Remove this!)]
Try this..
.. Under the WM_CREATE case.Code:hedwnd = CreateWindow("edit",NULL,WS_CHILD | WS_VISIBLE | WS_HSCROLL | WS_VSCROLL | WS_BORDER | ES_LEFT | ES_MULTILINE | ES_AUTOHSCROLL | ES_AUTOVSCROLL,0,0,0,0, hwnd, (HMENU) 1, hinst , NULL);
Then under WM_SIZE....
I haven't sat and tested as I'm sitting here, but if I remember correctly that should do the trick.Code:MoveWindow(hedwnd,0,0,LOWORD(lParam),HIWORD(lParam),TRUE);
Works perfectly, thanks!
[Signature here. (Remove this!)]