Author: ekohl
Date: Fri Sep 10 21:57:36 2010
New Revision: 48742
URL:
http://svn.reactos.org/svn/reactos?rev=48742&view=rev
Log:
[DESK.CPL]
Fix client font in the advanced appearance dialog. Patch by Katayama Hirofumi.
See issue #5552 for more details.
Modified:
trunk/reactos/dll/cpl/desk/preview.c
Modified: trunk/reactos/dll/cpl/desk/preview.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/desk/preview.c?rev…
==============================================================================
--- trunk/reactos/dll/cpl/desk/preview.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/desk/preview.c [iso-8859-1] Fri Sep 10 21:57:36 2010
@@ -63,6 +63,7 @@
HFONT hCaptionFont;
HFONT hMenuFont;
HFONT hMessageFont;
+ HFONT hClientFont;
HMENU hMenu;
@@ -112,6 +113,8 @@
{
THEME *theme;
+ pPreviewData->hClientFont = (HFONT)GetStockObject(DEFAULT_GUI_FONT);
+
/* Load and modify the menu */
pPreviewData->hMenu = LoadMenu(hApplet, MAKEINTRESOURCE(IDR_PREVIEW_MENU));
EnableMenuItem(pPreviewData->hMenu,
@@ -289,7 +292,7 @@
rc.left += 4;
rc.top += 2;
SetTextColor(hdc, theme->crColor[COLOR_WINDOWTEXT]);
- hOldFont = SelectObject(hdc, pPreviewData->hCaptionFont); /* FIXME: client text
is not caption text */
+ hOldFont = SelectObject(hdc, pPreviewData->hClientFont);
DrawText(hdc, pPreviewData->lpWinTxt, -1, &rc, DT_LEFT);
SelectObject(hdc, hOldFont);