shdocvw: Make the Home button in IE work.

This commit is contained in:
Alexander Nicolaysen Sørnes 2010-07-07 16:26:15 +02:00 committed by Alexandre Julliard
parent 5d7c460962
commit 871a65d230
2 changed files with 6 additions and 1 deletions

View File

@ -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;

View File

@ -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