mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 22:23:01 +00:00
[RAPPS] Hide the main window during active download/install if the user closes it (#7014)
This commit is contained in:
parent
2f83e6a65d
commit
053939e27c
7 changed files with 55 additions and 2 deletions
|
@ -470,6 +470,7 @@ CDownloadManager::DownloadDlgProc(HWND Dlg, UINT uMsg, WPARAM wParam, LPARAM lPa
|
|||
{
|
||||
case WM_INITDIALOG:
|
||||
{
|
||||
g_Busy++;
|
||||
HICON hIconSm, hIconBg;
|
||||
CStringW szTempCaption;
|
||||
|
||||
|
@ -557,6 +558,12 @@ CDownloadManager::DownloadDlgProc(HWND Dlg, UINT uMsg, WPARAM wParam, LPARAM lPa
|
|||
}
|
||||
return TRUE;
|
||||
|
||||
case WM_DESTROY:
|
||||
g_Busy--;
|
||||
if (hMainWnd)
|
||||
PostMessage(hMainWnd, WM_NOTIFY_OPERATIONCOMPLETED, 0, 0);
|
||||
return FALSE;
|
||||
|
||||
default:
|
||||
return FALSE;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue