mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[COMCTL32] ToolTip: Expand tabs (#6315)
Based on KRosUser's tooltip_tabfix.patch. ToolTip should expand tabs. JIRA issue: CORE-5635, CORE-13651 - Add DT_EXPANDTABS flag for DrawText.
This commit is contained in:
parent
4ee54e2519
commit
710df1361c
1 changed files with 6 additions and 0 deletions
|
@ -349,6 +349,9 @@ TOOLTIPS_Refresh (const TOOLTIPS_INFO *infoPtr, HDC hdc)
|
|||
}
|
||||
|
||||
/* draw text */
|
||||
#ifdef __REACTOS__
|
||||
uFlags |= DT_EXPANDTABS;
|
||||
#endif
|
||||
DrawTextW (hdc, infoPtr->szTipText, -1, &rc, uFlags);
|
||||
|
||||
/* Custom draw - Call PostPaint after drawing */
|
||||
|
@ -562,6 +565,9 @@ TOOLTIPS_CalcTipSize (const TOOLTIPS_INFO *infoPtr, LPSIZE lpSize)
|
|||
title.cx += (rcTitle.right - rcTitle.left);
|
||||
}
|
||||
hOldFont = SelectObject (hdc, infoPtr->hFont);
|
||||
#ifdef __REACTOS__
|
||||
uFlags |= DT_EXPANDTABS;
|
||||
#endif
|
||||
DrawTextW (hdc, infoPtr->szTipText, -1, &rc, uFlags);
|
||||
SelectObject (hdc, hOldFont);
|
||||
ReleaseDC (infoPtr->hwndSelf, hdc);
|
||||
|
|
Loading…
Reference in a new issue