Alexander Nicolaysen Sørnes : shdocvw: Allow the addressbar text in IE to be localized.
Alexandre Julliard
julliard at winehq.org
Tue Aug 3 13:10:37 CDT 2010
Module: wine
Branch: master
Commit: f74a563120165ca1f4de2656430c2a156bc38475
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f74a563120165ca1f4de2656430c2a156bc38475
Author: Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
Date: Tue Aug 3 13:00:10 2010 +0200
shdocvw: Allow the addressbar text in IE to be localized.
---
dlls/shdocvw/En.rc | 5 +++++
dlls/shdocvw/iexplore.c | 4 +++-
dlls/shdocvw/resource.h | 2 ++
3 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/dlls/shdocvw/En.rc b/dlls/shdocvw/En.rc
index ee6e378..014245b 100644
--- a/dlls/shdocvw/En.rc
+++ b/dlls/shdocvw/En.rc
@@ -70,3 +70,8 @@ STRINGTABLE
IDS_TB_HOME "Home"
IDS_TB_PRINT "Print"
}
+
+STRINGTABLE
+{
+ IDS_ADDRESS "Address"
+}
diff --git a/dlls/shdocvw/iexplore.c b/dlls/shdocvw/iexplore.c
index c4d545b..ea3fdf4 100644
--- a/dlls/shdocvw/iexplore.c
+++ b/dlls/shdocvw/iexplore.c
@@ -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);
diff --git a/dlls/shdocvw/resource.h b/dlls/shdocvw/resource.h
index 11b710d..c313ef7 100644
--- a/dlls/shdocvw/resource.h
+++ b/dlls/shdocvw/resource.h
@@ -52,3 +52,5 @@
#define IDS_TB_REFRESH 1103
#define IDS_TB_HOME 1104
#define IDS_TB_PRINT 1105
+
+#define IDS_ADDRESS 1106
More information about the wine-cvs
mailing list