You can put it using the CreateWindow API.Put "EDIT" as the classname argument.
Code:
HWND ed = CreateWindowEx(WS_EX_CLIENTEDGE, "edit", "Sample Text", WS_CHILD, 50, 125, 100, 25, hwnd, 0, hThisInst, NULL);
//hwnd = Handle of the parent Window
//hThisInst = Instance Handle Of the main window
ShowWindow(ed,1);
This is very annoying if you add a lot of controls on your window.
You can add a textbox on a window(dialog) using the controls buttons in VC++.Add the dialog as a resource and then draw the controls on it.
[Edited by Vlatko on 10-22-2000 at 07:41 AM]