I did what you said Fordy but it didn't work no edit control.
I also did EditControl.Create(Window.g_hMainWindow);
but that didn't work either.
EDIT:
If I do EditControl.Create(hwnd); and I set the Width and Height of the window to 100 I get an edit control. Why won't it take CW_USEDEFAULT? I got it to work using C awhile back.