I have created edit box, and placed it onto my main window, and everything works like it should; edit box appears on specified location, with white background, and black text. But when I include this edit box in my window proc like this:

Code:
SetWindowLong(edit_box_hwnd, GWL_WNDPROC, (LONG_PTR)myWindowProc);
edit box appears black, thus the text becomes invisible. I didn't process any messages to my edit box, inside the window proc, so the change of color has been done beyond my code.
Anyone experienced this behaviour ? And how to fix this?