Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
87f4e436
Commit
87f4e436
authored
Jun 21, 2010
by
Alexander Nicolaysen Sørnes
Committed by
Alexandre Julliard
Jul 23, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Allow printing from the menubar in IE.
parent
f2802b98
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
iexplore.c
dlls/shdocvw/iexplore.c
+27
-0
No files found.
dlls/shdocvw/iexplore.c
View file @
87f4e436
...
...
@@ -32,6 +32,7 @@
#include "oleidl.h"
#include "shdocvw.h"
#include "mshtmcid.h"
#include "wine/debug.h"
...
...
@@ -66,6 +67,30 @@ static LRESULT iewnd_OnDestroy(InternetExplorer *This)
return
0
;
}
static
LRESULT
CALLBACK
iewnd_OnCommand
(
InternetExplorer
*
This
,
HWND
hwnd
,
UINT
msg
,
WPARAM
wparam
,
LPARAM
lparam
)
{
switch
(
LOWORD
(
wparam
))
{
case
ID_BROWSE_PRINT
:
if
(
This
->
doc_host
.
document
)
{
IOleCommandTarget
*
target
;
if
(
FAILED
(
IUnknown_QueryInterface
(
This
->
doc_host
.
document
,
&
IID_IOleCommandTarget
,
(
LPVOID
*
)
&
target
)))
break
;
IOleCommandTarget_Exec
(
target
,
&
CGID_MSHTML
,
IDM_PRINT
,
OLECMDEXECOPT_DODEFAULT
,
NULL
,
NULL
);
IOleCommandTarget_Release
(
target
);
}
break
;
default:
return
DefWindowProcW
(
hwnd
,
msg
,
wparam
,
lparam
);
}
return
0
;
}
static
LRESULT
CALLBACK
ie_window_proc
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wparam
,
LPARAM
lparam
)
{
...
...
@@ -79,6 +104,8 @@ ie_window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
return
iewnd_OnDestroy
(
This
);
case
WM_SIZE
:
return
iewnd_OnSize
(
This
,
LOWORD
(
lparam
),
HIWORD
(
lparam
));
case
WM_COMMAND
:
return
iewnd_OnCommand
(
This
,
hwnd
,
msg
,
wparam
,
lparam
);
case
WM_DOCHOSTTASK
:
return
process_dochost_task
(
&
This
->
doc_host
,
lparam
);
}
...
...
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