Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
037d58c4
Commit
037d58c4
authored
Jan 14, 2011
by
Erich Hoover
Committed by
Alexandre Julliard
Jan 17, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hhctrl.ocx: Add support for the print button using IWebBrowser_ExecWB.
parent
0a46f9b6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletion
+9
-1
help.c
dlls/hhctrl.ocx/help.c
+3
-1
hhctrl.h
dlls/hhctrl.ocx/hhctrl.h
+1
-0
webbrowser.c
dlls/hhctrl.ocx/webbrowser.c
+5
-0
No files found.
dlls/hhctrl.ocx/help.c
View file @
037d58c4
...
...
@@ -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
:
...
...
dlls/hhctrl.ocx/hhctrl.h
View file @
037d58c4
...
...
@@ -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
;
...
...
dlls/hhctrl.ocx/webbrowser.c
View file @
037d58c4
...
...
@@ -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
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment