mirror of
https://github.com/reactos/reactos.git
synced 2024-10-04 16:36:11 +00:00
set the address bar font to the default GUI font
svn path=/trunk/; revision=27450
This commit is contained in:
parent
32212ecff8
commit
9a6cc3dc06
|
@ -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));
|
||||
|
@ -330,6 +331,16 @@ LRESULT CALLBACK ChildWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa
|
|||
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);
|
||||
SetWindowLongPtr(pChildWnd->hAddressBarWnd, GWL_USERDATA, (DWORD_PTR)oldproc);
|
||||
|
|
Loading…
Reference in a new issue