mirror of
https://github.com/reactos/reactos.git
synced 2024-06-29 01:12:06 +00:00
[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:
parent
f762aa3dd2
commit
b71429059a
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue