This is in a header file I am writing to make it easier to create buttons and other controls(with the Windows API)
both functions work,Code:#include <windows.h> HWND CreateButton(HINSTANCE hInstance, HWND parent, char * text, int x, int y, int cx, int cy) { HWND hwndb; hwndb = CreateWindowEx(0, "BUTTON", text, WS_CHILD, x, y, cx, cy, parent, NULL, hInstance, NULL); return hwndb; } HWND CreateEdit(HINSTANCE hInstance, HWND parent, char * text, int x, int y, int cx, int cy) { HWND hwnde; hwnde = CreateWindowEx(WS_EX_CLIENTEDGE, "EDIT", text, WS_CHILD + ES_MULTILINE, x, y, cx, cy, parent, NULL, hInstance, NULL); return hwnde; }
but I don't know which style to use to make the text box have a verticle and horizontal scrollbar...
I can't seem to find it in the platform SDK...
Thanks,
Dennis




Reply With Quote