Commit 871a65d2 authored by Alexander Nicolaysen Sørnes's avatar Alexander Nicolaysen Sørnes Committed by Alexandre Julliard

shdocvw: Make the Home button in IE work.

parent 5d7c4609
......@@ -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;
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment