I'm having trouble getting this to work, i just have a button and a text box right now and when you click the button i want the text in the text box to change but it doesn't seem to work. Heres what i have for the code.
Under Defines:
#define ID_CAPCNV 100
#define ID_EDBX 101
Under WM_CREATE:
HWND EBOX;
HWND BTN;
EBOX = CreateWindowEx(WS_EX_CLIENTEDGE, TEXT("EDIT"), TEXT(""), WS_CHILD|WS_VISIBLE|WS_BORDER, 5, 5, 200, 30, hwnd, (HMENU)ID_EDBX, 0, NULL);
BTN = CreateWindow("button", "Text", WS_CHILD | WS_VISIBLE, 5, 50, 100, 20, hwnd, (HMENU)ID_EDBX, 0, NULL);
return(0);
Under WM_COMMAND:
SetWindowText(EBOX, TEXT("Convert!!!"));
SetDlgItemText(EBOX, ID_EDBX,"TEST");
UpdateWindow(EBOX);
I've tried SetWindowText and SetDlgItemText both seperatly but i included them both in here so maybe you can help