mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 13:21:39 +00:00
[COMCTL32] rebar: Use DrawThemeText when drawing text with themes. CORE-13855
This commit is contained in:
parent
bf5e33201e
commit
92732f1bcf
1 changed files with 10 additions and 2 deletions
|
@ -612,8 +612,16 @@ REBAR_DrawBand (HDC hdc, const REBAR_INFO *infoPtr, REBAR_BAND *lpBand)
|
|||
lpBand->clrFore;
|
||||
oldcolor = SetTextColor (hdc, new);
|
||||
}
|
||||
DrawTextW (hdc, lpBand->lpText, -1, &lpBand->rcCapText,
|
||||
DT_CENTER | DT_VCENTER | DT_SINGLELINE);
|
||||
|
||||
if (!theme)
|
||||
{
|
||||
DrawTextW (hdc, lpBand->lpText, -1, &lpBand->rcCapText, DT_CENTER | DT_VCENTER | DT_SINGLELINE);
|
||||
}
|
||||
else
|
||||
{
|
||||
DrawThemeText(theme, hdc, 0, 0, lpBand->lpText, -1, DT_CENTER | DT_VCENTER | DT_SINGLELINE, 0, &lpBand->rcCapText);
|
||||
}
|
||||
|
||||
if (oldBkMode != TRANSPARENT)
|
||||
SetBkMode (hdc, oldBkMode);
|
||||
if (lpBand->clrFore != CLR_NONE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue