https://git.reactos.org/?p=reactos.git;a=commitdiff;h=789881672a47f69af454e52bf4be7e855b0b9d30

commit 789881672a47f69af454e52bf4be7e855b0b9d30
Author: Giannis Adamopoulos <[email protected]>
AuthorDate: Wed Jan 10 15:52:42 2018 +0200

    [COMCTL32] status: Use DrawThemeText when drawing text with themes. 
CORE-13855
---
 dll/win32/comctl32/status.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/dll/win32/comctl32/status.c b/dll/win32/comctl32/status.c
index 3cf1986245..e18a47ed85 100644
--- a/dll/win32/comctl32/status.c
+++ b/dll/win32/comctl32/status.c
@@ -196,7 +196,10 @@ STATUSBAR_DrawPart (const STATUS_INFO *infoPtr, HDC hdc, 
const STATUSWINDOWPART
         SendMessageW (infoPtr->Notify, WM_DRAWITEM, dis.CtlID, (LPARAM)&dis);
     } else {
         r.left += x;
-        DrawStatusTextW (hdc, &r, part->text, SBT_NOBORDERS);
+        if (!theme)
+            DrawStatusTextW (hdc, &r, part->text, SBT_NOBORDERS);
+        else
+            DrawThemeText(theme, hdc, SP_PANE, 0, part->text, -1, 
DT_VCENTER|DT_SINGLELINE|DT_NOPREFIX, 0, &r);
     }
 }
 

Reply via email to