I am assuming you mean to use this in the NewWndProc:
Originally Posted by Yarin
Surprisingly, this works (the edit field is type-able and the new/load/save buttons work) in Dev-C++, but not in lccWin32. Thanks Yarin.
return CallWindowProc(OldWndProc, hwnd, msg, wParam, lParam);
The problem I have now is that typing in the edit field does not trigger WM_CHAR messages, which is the reason that I had to subclass the edit field in the first place.
Now I just have the strange problem that, when resizing the window, the edit field covers the status bar, along with it not being docked to the top and right hand side of the window. */
This does the trick:
SetWindowPos(GetDlgItem(hwnd, IDC_MAIN_STATUS), NULL, 0, rcClient.bottom - iStatusHeight,
rcClient.right, iStatusHeight, SWP_NOZORDER);
Turns out that it was generating WM_CHAR and WM_KEYDOWN messages, the problem was that I forgot to use:
Thanks for all your help, I never had needed to subclass before so that cleared a few things up. Also, I am going to use Dev-C++ more often and I still think there should be just one compiler that does everything.
GetLines(GetParent(hwnd)) //instead of GetLines(hwnd)