[COMCTL32] Improve status bar margin for unthemed and themed CORE-15834

Improve further what was recently committed in
0.4.12-dev-361-g
da9accfba6
This commit is contained in:
Joachim Henze 2019-04-07 15:15:25 +02:00
parent f762aa3dd2
commit b71429059a

View file

@ -201,12 +201,17 @@ STATUSBAR_DrawPart (const STATUS_INFO *infoPtr, HDC hdc, const STATUSWINDOWPART
} else { } else {
r.left += x; r.left += x;
#ifdef __REACTOS__ #ifdef __REACTOS__
r.left += 3;
r.right -= 3;
if (!theme) if (!theme)
{
r.left -= 2;
DrawStatusTextW (hdc, &r, part->text, SBT_NOBORDERS); DrawStatusTextW (hdc, &r, part->text, SBT_NOBORDERS);
}
else else
{
r.left += 2;
r.right -= 2;
DrawThemeText(theme, hdc, SP_PANE, 0, part->text, -1, DT_VCENTER|DT_SINGLELINE|DT_NOPREFIX, 0, &r); DrawThemeText(theme, hdc, SP_PANE, 0, part->text, -1, DT_VCENTER|DT_SINGLELINE|DT_NOPREFIX, 0, &r);
}
#else #else
DrawStatusTextW (hdc, &r, part->text, SBT_NOBORDERS); DrawStatusTextW (hdc, &r, part->text, SBT_NOBORDERS);
#endif #endif