Author: CalebCaleb Date: May 2, 2008 06:41
domi valis.com> wrote in news:fvenq8$8rv$1@aioe.org:
>
> the HWND should be in your Dlg callback :
>
> LRESULT CALLBACK AboutDlgProc(HWND hDlg, UINT message, WPARAM wParam,
> LPARAM lParam)
>
Thanks domi! Technically I already knew that, but you gave me an idea.
At the beginning of the file, I declared
HWND myDialog;
In the Dialogs callback, during initiation, I said that
myDialog = hwnd;
And then when I created a thread for the function
DWORD WINAPI AdvanceProgress(LPVOID lpParam) {
//some code here, just removed it...
SetDlgItemText(myDialog, IDCANCEL, "Finish");
return(0); }
And it worked! This might not be necessarily what you meant, but it
worked either way. Thanks =)
|