From 9a6cc3dc06336b671e21d3c94f5c07ab285d13d9 Mon Sep 17 00:00:00 2001 From: Ged Murphy Date: Sat, 7 Jul 2007 10:28:53 +0000 Subject: [PATCH] set the address bar font to the default GUI font svn path=/trunk/; revision=27450 --- reactos/base/applications/regedit/childwnd.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/reactos/base/applications/regedit/childwnd.c b/reactos/base/applications/regedit/childwnd.c index b880b4caae9..c914cb97f6b 100644 --- a/reactos/base/applications/regedit/childwnd.c +++ b/reactos/base/applications/regedit/childwnd.c @@ -313,6 +313,7 @@ LRESULT CALLBACK ChildWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa case WM_CREATE: { WNDPROC oldproc; + HFONT hFont; TCHAR buffer[MAX_PATH]; /* load "My Computer" string */ LoadString(hInst, IDS_MY_COMPUTER, buffer, sizeof(buffer)/sizeof(TCHAR)); @@ -329,6 +330,16 @@ LRESULT CALLBACK ChildWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa pChildWnd->hTreeWnd = CreateTreeView(hWnd, pChildWnd->szPath, (HMENU) TREE_WINDOW); pChildWnd->hListWnd = CreateListView(hWnd, (HMENU) LIST_WINDOW/*, pChildWnd->szPath*/); SetFocus(pChildWnd->hTreeWnd); + + /* set the address bar font */ + if (pChildWnd->hAddressBarWnd) + { + hFont = (HFONT)GetStockObject(DEFAULT_GUI_FONT); + SendMessage(pChildWnd->hAddressBarWnd, + WM_SETFONT, + (WPARAM)hFont, + 0); + } /* Subclass the AddressBar */ oldproc = (WNDPROC)(LONG_PTR)GetWindowLongPtr(pChildWnd->hAddressBarWnd, GWL_WNDPROC);