You can put it using the CreateWindow API.Put "EDIT" as the classname argument.
This is very annoying if you add a lot of controls on your window.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);
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]




mail:
Reply With Quote