https://git.reactos.org/?p=reactos.git;a=commitdiff;h=9dae161631d6aadf73b2dce67ee03067b23bde8b
commit 9dae161631d6aadf73b2dce67ee03067b23bde8b Author: Stanislav Motylkov <x86co...@gmail.com> AuthorDate: Sun Sep 8 21:30:03 2024 +0300 Commit: Stanislav Motylkov <x86co...@gmail.com> CommitDate: Sun Sep 8 21:34:23 2024 +0300 [UXTHEME] DrawNCPreview: Do not draw the icon for inactive/active windows This is how preview works in Windows. Addendum to 118869f69. CORE-5991 --- dll/win32/uxtheme/nonclient.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/dll/win32/uxtheme/nonclient.c b/dll/win32/uxtheme/nonclient.c index 6f89ef4305f..e78a62ed4ac 100644 --- a/dll/win32/uxtheme/nonclient.c +++ b/dll/win32/uxtheme/nonclient.c @@ -1239,7 +1239,7 @@ HRESULT WINAPI DrawNCPreview(HDC hDC, if (!RegisterClassExW(&DummyPreviewWindowClass)) return E_FAIL; - hwndDummy = CreateWindowExW(0, L"DummyPreviewWindowClass", NULL, WS_OVERLAPPEDWINDOW | WS_VSCROLL, 30, 30, 300, 150, 0, 0, hDllInst, NULL); + hwndDummy = CreateWindowExW(WS_EX_DLGMODALFRAME, L"DummyPreviewWindowClass", NULL, WS_OVERLAPPEDWINDOW | WS_VSCROLL, 30, 30, 300, 150, 0, 0, hDllInst, NULL); if (!hwndDummy) return E_FAIL; @@ -1295,14 +1295,11 @@ HRESULT WINAPI DrawNCPreview(HDC hDC, SetWindowResourceText(hwndDummy, IDS_MESSAGEBOX); DWORD dwStyleNew = WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_DLGFRAME; SetWindowLongPtr(hwndDummy, GWL_STYLE, dwStyleNew); - DWORD dwExStyleNew = WS_EX_DLGMODALFRAME; - SetWindowLongPtr(hwndDummy, GWL_EXSTYLE, dwExStyleNew); if (!GetWindowInfo(hwndDummy, &context.wi)) return E_FAIL; context.wi.dwStyle = WS_VISIBLE | dwStyleNew; - context.wi.dwExStyle = dwExStyleNew; INT msgBoxHCenter = rcAdjPreview.left + (previewWidth / 2); INT msgBoxVCenter = rcAdjPreview.top + (previewHeight / 2);