[ros-diffs] [gedmurphy] 27450: set the address bar font to the default GUI font

gedmurphy at svn.reactos.org gedmurphy at svn.reactos.org
Sat Jul 7 12:28:54 CEST 2007


Author: gedmurphy
Date: Sat Jul  7 14:28:53 2007
New Revision: 27450

URL: http://svn.reactos.org/svn/reactos?rev=27450&view=rev
Log:
set the address bar font to the default GUI font

Modified:
    trunk/reactos/base/applications/regedit/childwnd.c

Modified: trunk/reactos/base/applications/regedit/childwnd.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/regedit/childwnd.c?rev=27450&r1=27449&r2=27450&view=diff
==============================================================================
--- trunk/reactos/base/applications/regedit/childwnd.c (original)
+++ trunk/reactos/base/applications/regedit/childwnd.c Sat Jul  7 14:28:53 2007
@@ -313,6 +313,7 @@
     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 @@
 		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);




More information about the Ros-diffs mailing list