mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 16:23:01 +00:00
[COMCTL32] status: Use DrawThemeText when drawing text with themes. CORE-13855
This commit is contained in:
parent
92732f1bcf
commit
789881672a
1 changed files with 4 additions and 1 deletions
|
@ -196,7 +196,10 @@ STATUSBAR_DrawPart (const STATUS_INFO *infoPtr, HDC hdc, const STATUSWINDOWPART
|
||||||
SendMessageW (infoPtr->Notify, WM_DRAWITEM, dis.CtlID, (LPARAM)&dis);
|
SendMessageW (infoPtr->Notify, WM_DRAWITEM, dis.CtlID, (LPARAM)&dis);
|
||||||
} else {
|
} else {
|
||||||
r.left += x;
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue