From 7a90496c39310ca84ff41612e4b8a1e9f64eef96 Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Sat, 6 Jun 2015 17:08:21 +0000 Subject: [PATCH] [UXTHEME] Add a missing WS_EX_DLGMODALFRAME check from the unthemed titlebar drawing code. By Ismael Ferreras Morezuelas (IRC name swyter). CORE-9635 svn path=/trunk/; revision=68049 --- reactos/dll/win32/uxtheme/nonclient.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reactos/dll/win32/uxtheme/nonclient.c b/reactos/dll/win32/uxtheme/nonclient.c index db011c93cb4..36c9274c4fb 100644 --- a/reactos/dll/win32/uxtheme/nonclient.c +++ b/reactos/dll/win32/uxtheme/nonclient.c @@ -352,7 +352,8 @@ ThemeDrawCaption(PDRAW_CONTEXT pcontext, RECT* prcCurrent) rcPart.top += 3 ; /* Draw the icon */ - if(hIcon && !(pcontext->wi.dwExStyle & WS_EX_TOOLWINDOW)) + if(hIcon && !(pcontext->wi.dwExStyle & WS_EX_TOOLWINDOW) + && !(pcontext->wi.dwExStyle & WS_EX_DLGMODALFRAME)) { int IconHeight = GetSystemMetrics(SM_CYSMICON); int IconWidth = GetSystemMetrics(SM_CXSMICON);