shdocvw: Allow the addressbar text in IE to be localized.

This commit is contained in:
Alexander Nicolaysen Sørnes 2010-08-03 13:00:10 +02:00 committed by Alexandre Julliard
parent 4432f57e35
commit f74a563120
3 changed files with 10 additions and 1 deletions

View File

@ -70,3 +70,8 @@ STRINGTABLE
IDS_TB_HOME "Home"
IDS_TB_PRINT "Print"
}
STRINGTABLE
{
IDS_ADDRESS "Address"
}

View File

@ -354,10 +354,12 @@ static void create_rebar(HWND hwnd)
HWND hwndToolbar;
REBARINFO rebarinf;
REBARBANDINFOW bandinf;
WCHAR addr[] = {'A','d','d','r','e','s','s',0};
WCHAR addr[40];
HIMAGELIST imagelist;
WCHAR idb_ietoolbar[] = {'I','D','B','_','I','E','T','O','O','L','B','A','R',0};
LoadStringW(shdocvw_hinstance, IDS_ADDRESS, addr, sizeof(addr)/sizeof(addr[0]));
hwndRebar = CreateWindowExW(WS_EX_TOOLWINDOW, REBARCLASSNAMEW, NULL, WS_CHILD|WS_VISIBLE|WS_CLIPSIBLINGS|WS_CLIPCHILDREN|RBS_VARHEIGHT|CCS_TOP|CCS_NODIVIDER, 0, 0, 0, 0, hwnd, (HMENU)IDC_BROWSE_REBAR, shdocvw_hinstance, NULL);
rebarinf.cbSize = sizeof(rebarinf);

View File

@ -52,3 +52,5 @@
#define IDS_TB_REFRESH 1103
#define IDS_TB_HOME 1104
#define IDS_TB_PRINT 1105
#define IDS_ADDRESS 1106