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
03342918
Commit
03342918
authored
Jun 10, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 11, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use IOleCommandTarget::Exec to implement context menu.
parent
239b86fe
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
21 deletions
+23
-21
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-1
nsembed.c
dlls/mshtml/nsembed.c
+1
-1
olecmd.c
dlls/mshtml/olecmd.c
+21
-0
olewnd.c
dlls/mshtml/olewnd.c
+0
-19
No files found.
dlls/mshtml/mshtml_private.h
View file @
03342918
...
...
@@ -313,7 +313,7 @@ NSContainer *NSContainer_Create(HTMLDocument*,NSContainer*);
void
NSContainer_Release
(
NSContainer
*
);
void
HTMLDocument_LockContainer
(
HTMLDocument
*
,
BOOL
);
void
HTMLDocument_ShowContextM
enu
(
HTMLDocument
*
,
DWORD
,
POINT
*
);
void
show_context_m
enu
(
HTMLDocument
*
,
DWORD
,
POINT
*
);
void
show_tooltip
(
HTMLDocument
*
,
DWORD
,
DWORD
,
LPCWSTR
);
void
hide_tooltip
(
HTMLDocument
*
);
...
...
dlls/mshtml/nsembed.c
View file @
03342918
...
...
@@ -898,7 +898,7 @@ static nsresult NSAPI nsContextMenuListener_OnShowContextMenu(nsIContextMenuList
FIXME
(
"aContextFlags=%08x
\n
"
,
aContextFlags
);
};
HTMLDocument_ShowContextM
enu
(
This
->
doc
,
dwID
,
&
pt
);
show_context_m
enu
(
This
->
doc
,
dwID
,
&
pt
);
return
NS_OK
;
}
...
...
dlls/mshtml/olecmd.c
View file @
03342918
...
...
@@ -814,6 +814,27 @@ static const IOleCommandTargetVtbl OleCommandTargetVtbl = {
OleCommandTarget_Exec
};
void
show_context_menu
(
HTMLDocument
*
This
,
DWORD
dwID
,
POINT
*
ppt
)
{
HMENU
menu_res
,
menu
;
DWORD
cmdid
;
HRESULT
hres
;
hres
=
IDocHostUIHandler_ShowContextMenu
(
This
->
hostui
,
dwID
,
ppt
,
(
IUnknown
*
)
CMDTARGET
(
This
),
(
IDispatch
*
)
HTMLDOC
(
This
));
if
(
hres
==
S_OK
)
return
;
menu_res
=
LoadMenuW
(
get_shdoclc
(),
MAKEINTRESOURCEW
(
IDR_BROWSE_CONTEXT_MENU
));
menu
=
GetSubMenu
(
menu_res
,
dwID
);
cmdid
=
TrackPopupMenu
(
menu
,
TPM_LEFTALIGN
|
TPM_RIGHTBUTTON
|
TPM_RETURNCMD
,
ppt
->
x
,
ppt
->
y
,
0
,
This
->
hwnd
,
NULL
);
DestroyMenu
(
menu_res
);
IOleCommandTarget_Exec
(
CMDTARGET
(
This
),
&
CGID_MSHTML
,
cmdid
,
0
,
NULL
,
NULL
);
}
void
HTMLDocument_OleCmd_Init
(
HTMLDocument
*
This
)
{
This
->
lpOleCommandTargetVtbl
=
&
OleCommandTargetVtbl
;
...
...
dlls/mshtml/olewnd.c
View file @
03342918
...
...
@@ -262,25 +262,6 @@ static const IOleInPlaceObjectWindowlessVtbl OleInPlaceObjectWindowlessVtbl = {
#undef INPLACEWIN_THIS
void
HTMLDocument_ShowContextMenu
(
HTMLDocument
*
This
,
DWORD
dwID
,
POINT
*
ppt
)
{
HMENU
menu_res
,
menu
;
HRESULT
hres
;
hres
=
IDocHostUIHandler_ShowContextMenu
(
This
->
hostui
,
dwID
,
ppt
,
(
IUnknown
*
)
CMDTARGET
(
This
),
(
IDispatch
*
)
HTMLDOC
(
This
));
if
(
hres
==
S_OK
)
return
;
menu_res
=
LoadMenuW
(
get_shdoclc
(),
MAKEINTRESOURCEW
(
IDR_BROWSE_CONTEXT_MENU
));
menu
=
GetSubMenu
(
menu_res
,
dwID
);
TrackPopupMenu
(
menu
,
TPM_LEFTALIGN
|
TPM_RIGHTBUTTON
|
TPM_RETURNCMD
,
ppt
->
x
,
ppt
->
y
,
0
,
This
->
hwnd
,
NULL
);
DestroyMenu
(
menu_res
);
}
void
HTMLDocument_Window_Init
(
HTMLDocument
*
This
)
{
This
->
lpOleInPlaceActiveObjectVtbl
=
&
OleInPlaceActiveObjectVtbl
;
...
...
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