mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[RAPPS] Don't send WM_SETTEXT directly
Use SetWindowText and SetDlgItemText. CORE-14686
This commit is contained in:
parent
261416ddb9
commit
844d447e03
1 changed files with 4 additions and 4 deletions
|
@ -174,7 +174,7 @@ public:
|
|||
|
||||
/* and finally display it */
|
||||
if (!IsWindow()) return;
|
||||
SendMessage(WM_SETTEXT, 0, (LPARAM) ProgressText.GetString());
|
||||
SetWindowText(ProgressText.GetString());
|
||||
}
|
||||
|
||||
LRESULT OnPaint(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
|
||||
|
@ -524,7 +524,7 @@ VOID CDownloadManager::UpdateProgress(
|
|||
}
|
||||
|
||||
/* paste it into our dialog and don't do it again in this instance */
|
||||
SendMessageW(Item, WM_SETTEXT, 0, (LPARAM) buf.GetString());
|
||||
::SetWindowText(Item, buf.GetString());
|
||||
UrlHasBeenCopied = TRUE;
|
||||
}
|
||||
}
|
||||
|
@ -597,7 +597,7 @@ unsigned int WINAPI CDownloadManager::ThreadFunc(LPVOID param)
|
|||
if (Item)
|
||||
{
|
||||
ProgressBar.SetMarquee(FALSE);
|
||||
ProgressBar.SendMessage(WM_SETTEXT, 0, (LPARAM) L"");
|
||||
ProgressBar.SetWindowText(L"");
|
||||
ProgressBar.SendMessage(PBM_SETPOS, 0, 0);
|
||||
}
|
||||
|
||||
|
@ -919,7 +919,7 @@ unsigned int WINAPI CDownloadManager::ThreadFunc(LPVOID param)
|
|||
|
||||
if (!IsWindow(hDlg)) goto end;
|
||||
SetWindowTextW(hDlg, szMsgText.GetString());
|
||||
SendMessageW(GetDlgItem(hDlg, IDC_DOWNLOAD_STATUS), WM_SETTEXT, 0, (LPARAM) Path.GetString());
|
||||
::SetDlgItemText(hDlg, IDC_DOWNLOAD_STATUS, Path.GetString());
|
||||
|
||||
// this may take a while, depending on the file size
|
||||
if (!VerifyInteg(InfoArray[iAppId].szSHA1.GetString(), Path.GetString()))
|
||||
|
|
Loading…
Reference in a new issue