Hey folks!
I have a script similar to this:
void newThread(void* none){
buff = "New changed text!!"
Some script that changes texthwnd to buff;
texthwnd.label = buff; }
int winmain(blah,blah,,){
Making window structure...
still making window structure...
hwnd = CreateWindowEx(blah, classname, windowname, blah);
ShowWindow(hwnd, something);
_beginthread(newThread, 0, 0);
while(1){
some important while loop for messages;
}
}
LRESULT CALLBACK WindowProcedure (blah,blah,blah){
switch (message){
case WM_CREATE:
texthwnd = CreateWindowEx(0, "STATIC", "Random Text",
WS_CHILD | WS_VISIBLE | SS_SIMPLE,
10, 10, 100, 100, hwnd, 0, 0, 0);
break;
case WM_DESTROY:
PostQuitMessage (0);
break;
default:
return DefWindowProc (blah,);
}
return 0;
}
The thing I want is to change the text of the "texthwnd"?
How!?!?!?
I've been "googling" alot!
Im new to GUI programming and this is one of my first projects with GUI.
This is the first time i send a question anywhere on the internet so let me know if there's something i've missed!
Thanks!