comctl32: Use default GUI font instead of System as a fallback in the tab control.

Dmitry Timoshkov dmitry at baikal.ru
Mon Jun 17 19:41:58 CDT 2013


---
 dlls/comctl32/tab.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/comctl32/tab.c b/dlls/comctl32/tab.c
index bd75c88..308ad16 100644
--- a/dlls/comctl32/tab.c
+++ b/dlls/comctl32/tab.c
@@ -1120,7 +1120,7 @@ static void TAB_SetItemBounds (TAB_INFO *infoPtr)
    */
   hdc = GetDC(infoPtr->hwnd);
 
-  hFont = infoPtr->hFont ? infoPtr->hFont : GetStockObject (SYSTEM_FONT);
+  hFont = infoPtr->hFont ? infoPtr->hFont : GetStockObject (DEFAULT_GUI_FONT);
   hOldFont = SelectObject (hdc, hFont);
 
   /*
@@ -3061,7 +3061,7 @@ static LRESULT TAB_Create (HWND hwnd, LPARAM lParam)
    * a font.
    */
   hdc = GetDC(hwnd);
-  hOldFont = SelectObject (hdc, GetStockObject (SYSTEM_FONT));
+  hOldFont = SelectObject (hdc, GetStockObject (DEFAULT_GUI_FONT));
 
   /* Use the system font to determine the initial height of a tab. */
   GetTextMetricsW(hdc, &fontMetrics);
-- 
1.8.3.1




More information about the wine-patches mailing list