Originally Posted by
Yarin
You should call the old wnd proc not the def wnd proc.
I am assuming you mean to use this in the NewWndProc:
Code:
default:
return CallWindowProc(OldWndProc, hwnd, msg, wParam, lParam);
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.
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.
/***FIXED**
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:
Code:
SetWindowPos(GetDlgItem(hwnd, IDC_MAIN_STATUS), NULL, 0, rcClient.bottom - iStatusHeight,
rcClient.right, iStatusHeight, SWP_NOZORDER);