[COMCTL32] status: Use DrawThemeText when drawing text with themes. CORE-13855
authorGiannis Adamopoulos <gadamopoulos@reactos.org>
Wed, 10 Jan 2018 13:52:42 +0000 (15:52 +0200)
committerGiannis Adamopoulos <gadamopoulos@reactos.org>
Wed, 10 Jan 2018 13:52:42 +0000 (15:52 +0200)
dll/win32/comctl32/status.c

index 3cf1986..e18a47e 100644 (file)
@@ -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);
     }
 }