1
0
mirror of https://github.com/valinet/ExplorerPatcher.git synced 2025-01-24 07:14:06 +01:00

Utility: Prevent "Please wait" window from receiving input

This commit is contained in:
Valentin Radu 2022-02-14 07:41:02 +02:00
parent 234ddf535b
commit 0634e93d64

View File

@ -1268,6 +1268,7 @@ LRESULT CALLBACK PleaseWait_HookProc(int code, WPARAM wParam, LPARAM lParam)
if (msg->message == WM_INITDIALOG)
{
PleaseWaitHWND = msg->hwnd;
EnableWindow(PleaseWaitHWND, FALSE);
LONG_PTR style = GetWindowLongPtrW(PleaseWaitHWND, GWL_STYLE);
SetWindowLongPtrW(PleaseWaitHWND, GWL_STYLE, style & ~WS_SYSMENU);
RECT rc;