Alexander Nicolaysen Sørnes : shdocvw: Make the Home button in IE work.

Alexandre Julliard julliard at winehq.org
Tue Aug 3 13:10:37 CDT 2010


Module: wine
Branch: master
Commit: 871a65d230b754ad812d01cfa53be271ede6e701
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=871a65d230b754ad812d01cfa53be271ede6e701

Author: Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
Date:   Wed Jul  7 16:26:15 2010 +0200

shdocvw: Make the Home button in IE work.

---

 dlls/shdocvw/iexplore.c |    6 +++++-
 dlls/shdocvw/resource.h |    1 +
 2 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/dlls/shdocvw/iexplore.c b/dlls/shdocvw/iexplore.c
index a908744..9144e85 100644
--- a/dlls/shdocvw/iexplore.c
+++ b/dlls/shdocvw/iexplore.c
@@ -372,7 +372,7 @@ static void create_rebar(HWND hwnd)
     add_tb_button(hwndToolbar, I_IMAGENONE, 0, IDS_TB_FORWARD);
     add_tb_button(hwndToolbar, I_IMAGENONE, 0, IDS_TB_STOP);
     add_tb_button(hwndToolbar, I_IMAGENONE, 0, IDS_TB_REFRESH);
-    add_tb_button(hwndToolbar, I_IMAGENONE, 0, IDS_TB_HOME);
+    add_tb_button(hwndToolbar, I_IMAGENONE, ID_BROWSE_HOME, IDS_TB_HOME);
     add_tb_separator(hwndToolbar);
     add_tb_button(hwndToolbar, I_IMAGENONE, ID_BROWSE_PRINT, IDS_TB_PRINT);
     SendMessageW(hwndToolbar, TB_SETBUTTONSIZE, 0, MAKELPARAM(50,40));
@@ -491,6 +491,10 @@ static LRESULT CALLBACK iewnd_OnCommand(InternetExplorer *This, HWND hwnd, UINT
             }
             break;
 
+        case ID_BROWSE_HOME:
+            IWebBrowser2_GoHome(WEBBROWSER2(This));
+            break;
+
         case ID_BROWSE_ABOUT:
             ie_dialog_about(hwnd);
             break;
diff --git a/dlls/shdocvw/resource.h b/dlls/shdocvw/resource.h
index 3e497fe..853538f 100644
--- a/dlls/shdocvw/resource.h
+++ b/dlls/shdocvw/resource.h
@@ -40,6 +40,7 @@
 #define ID_BROWSE_ABOUT                336
 
 #define ID_BROWSE_ADDFAV               1200
+#define ID_BROWSE_HOME                 1201
 
 #define ID_BROWSE_GOTOFAV_FIRST        2000
 #define ID_BROWSE_GOTOFAV_MAX          65000




More information about the wine-cvs mailing list