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
48eba803
Commit
48eba803
authored
Jan 10, 2012
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 10, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Remove menu insertion helper.
parent
260c8ce9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
28 deletions
+8
-28
shv_item_cmenu.c
dlls/shell32/shv_item_cmenu.c
+8
-28
No files found.
dlls/shell32/shv_item_cmenu.c
View file @
48eba803
...
...
@@ -158,33 +158,6 @@ static ULONG WINAPI ISvItemCm_fnRelease(IContextMenu2 *iface)
return
refCount
;
}
static
void
_InsertMenuItemW
(
HMENU
hmenu
,
UINT
indexMenu
,
BOOL
fByPosition
,
UINT
wID
,
UINT
fType
,
LPWSTR
dwTypeData
,
UINT
fState
)
{
MENUITEMINFOW
mii
;
mii
.
cbSize
=
sizeof
(
mii
);
if
(
fType
==
MFT_SEPARATOR
)
{
mii
.
fMask
=
MIIM_ID
|
MIIM_TYPE
;
}
else
{
mii
.
fMask
=
MIIM_ID
|
MIIM_TYPE
|
MIIM_STATE
;
mii
.
dwTypeData
=
dwTypeData
;
mii
.
fState
=
fState
;
}
mii
.
wID
=
wID
;
mii
.
fType
=
fType
;
InsertMenuItemW
(
hmenu
,
indexMenu
,
fByPosition
,
&
mii
);
}
/**************************************************************************
* ISvItemCm_fnQueryContextMenu()
*/
...
...
@@ -224,7 +197,14 @@ static HRESULT WINAPI ISvItemCm_fnQueryContextMenu(
mi
.
cch
=
255
;
GetMenuItemInfoW
(
hmenu
,
FCIDM_SHVIEW_EXPLORE
,
MF_BYCOMMAND
,
&
mi
);
RemoveMenu
(
hmenu
,
FCIDM_SHVIEW_EXPLORE
,
MF_BYCOMMAND
);
_InsertMenuItemW
(
hmenu
,
(
uFlags
&
CMF_EXPLORE
)
?
1
:
2
,
MF_BYPOSITION
,
FCIDM_SHVIEW_EXPLORE
,
MFT_STRING
,
str
,
MFS_ENABLED
);
mi
.
cbSize
=
sizeof
(
mi
);
mi
.
fMask
=
MIIM_ID
|
MIIM_TYPE
|
MIIM_STATE
;
mi
.
dwTypeData
=
str
;
mi
.
fState
=
MFS_ENABLED
;
mi
.
wID
=
FCIDM_SHVIEW_EXPLORE
;
mi
.
fType
=
MFT_STRING
;
InsertMenuItemW
(
hmenu
,
(
uFlags
&
CMF_EXPLORE
)
?
1
:
2
,
MF_BYPOSITION
,
&
mi
);
}
SetMenuDefaultItem
(
hmenu
,
0
,
MF_BYPOSITION
);
...
...
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