Commit 037d58c4 authored by Erich Hoover's avatar Erich Hoover Committed by Alexandre Julliard

hhctrl.ocx: Add support for the print button using IWebBrowser_ExecWB.

parent 0a46f9b6
......@@ -641,10 +641,12 @@ static void TB_OnClick(HWND hWnd, DWORD dwID)
case IDTB_FORWARD:
DoPageAction(info, WB_GOFORWARD);
break;
case IDTB_PRINT:
DoPageAction(info, WB_PRINT);
break;
case IDTB_EXPAND:
case IDTB_CONTRACT:
case IDTB_SYNC:
case IDTB_PRINT:
case IDTB_OPTIONS:
case IDTB_BROWSE_FWD:
case IDTB_BROWSE_BACK:
......
......@@ -47,6 +47,7 @@
#define WB_SEARCH 3
#define WB_REFRESH 4
#define WB_STOP 5
#define WB_PRINT 6
typedef struct {
LPWSTR chm_file;
......
......@@ -751,7 +751,12 @@ void DoPageAction(HHInfo *info, DWORD dwAction)
break;
case WB_REFRESH:
IWebBrowser2_Refresh(pWebBrowser2);
break;
case WB_STOP:
IWebBrowser2_Stop(pWebBrowser2);
break;
case WB_PRINT:
IWebBrowser2_ExecWB(pWebBrowser2, OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER, 0, 0);
break;
}
}
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