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
53a4b58b
Commit
53a4b58b
authored
Aug 16, 2002
by
Aric Stewart
Committed by
Alexandre Julliard
Aug 16, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes to allow IE to do local file loading and some limited browsing.
parent
03bbb464
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
14 deletions
+33
-14
shv_bg_cmenu.c
dlls/shell32/shv_bg_cmenu.c
+33
-14
No files found.
dlls/shell32/shv_bg_cmenu.c
View file @
53a4b58b
...
...
@@ -145,20 +145,39 @@ static HRESULT WINAPI ISVBgCm_fnQueryContextMenu(
UINT
idCmdLast
,
UINT
uFlags
)
{
HMENU
hMyMenu
;
UINT
idMax
;
ICOM_THIS
(
BgCmImpl
,
iface
);
TRACE
(
"(%p)->(hmenu=%x indexmenu=%x cmdfirst=%x cmdlast=%x flags=%x )
\n
"
,
This
,
hMenu
,
indexMenu
,
idCmdFirst
,
idCmdLast
,
uFlags
);
hMyMenu
=
LoadMenuA
(
shell32_hInstance
,
"MENU_002"
);
idMax
=
Shell_MergeMenus
(
hMenu
,
GetSubMenu
(
hMyMenu
,
0
),
indexMenu
,
idCmdFirst
,
idCmdLast
,
MM_SUBMENUSHAVEIDS
);
DestroyMenu
(
hMyMenu
);
return
ResultFromShort
(
idMax
-
idCmdFirst
);
HMENU
hMyMenu
;
UINT
idMax
;
HRESULT
hr
;
ICOM_THIS
(
BgCmImpl
,
iface
);
TRACE
(
"(%p)->(hmenu=%x indexmenu=%x cmdfirst=%x cmdlast=%x flags=%x )
\n
"
,
This
,
hMenu
,
indexMenu
,
idCmdFirst
,
idCmdLast
,
uFlags
);
hMyMenu
=
LoadMenuA
(
shell32_hInstance
,
"MENU_002"
);
if
(
uFlags
&
CMF_DEFAULTONLY
)
{
HMENU
ourMenu
=
GetSubMenu
(
hMyMenu
,
0
);
UINT
oldDef
=
GetMenuDefaultItem
(
hMenu
,
TRUE
,
GMDI_USEDISABLED
);
UINT
newDef
=
GetMenuDefaultItem
(
ourMenu
,
TRUE
,
GMDI_USEDISABLED
);
if
(
newDef
!=
oldDef
)
SetMenuDefaultItem
(
hMenu
,
newDef
,
TRUE
);
if
(
newDef
!=
0xFFFFFFFF
)
hr
=
MAKE_HRESULT
(
SEVERITY_SUCCESS
,
FACILITY_NULL
,
newDef
+
1
);
else
hr
=
MAKE_HRESULT
(
SEVERITY_SUCCESS
,
FACILITY_NULL
,
0
);
}
else
{
idMax
=
Shell_MergeMenus
(
hMenu
,
GetSubMenu
(
hMyMenu
,
0
),
indexMenu
,
idCmdFirst
,
idCmdLast
,
MM_SUBMENUSHAVEIDS
);
hr
=
MAKE_HRESULT
(
SEVERITY_SUCCESS
,
FACILITY_NULL
,
idMax
-
idCmdFirst
+
1
);
}
DestroyMenu
(
hMyMenu
);
TRACE
(
"(%p)->returning 0x%lx
\n
"
,
This
,
hr
);
return
hr
;
}
/**************************************************************************
...
...
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