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
06f6cc9d
Commit
06f6cc9d
authored
Sep 20, 2004
by
Martin Fuchs
Committed by
Alexandre Julliard
Sep 20, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct setting of default menu item in shell context menus.
parent
d56de589
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
14 deletions
+18
-14
shv_item_cmenu.c
dlls/shell32/shv_item_cmenu.c
+18
-14
No files found.
dlls/shell32/shv_item_cmenu.c
View file @
06f6cc9d
...
...
@@ -204,10 +204,12 @@ void WINAPI _InsertMenuItem (
mii
.
fType
=
fType
;
InsertMenuItemA
(
hmenu
,
indexMenu
,
fByPosition
,
&
mii
);
}
/**************************************************************************
* ISvItemCm_fnQueryContextMenu()
* FIXME: load menu MENU_SHV_FILE out of resources instead if creating
* each menu item by calling _InsertMenuItem()
*/
static
HRESULT
WINAPI
ISvItemCm_fnQueryContextMenu
(
IContextMenu2
*
iface
,
HMENU
hmenu
,
...
...
@@ -220,25 +222,27 @@ static HRESULT WINAPI ISvItemCm_fnQueryContextMenu(
TRACE
(
"(%p)->(hmenu=%p indexmenu=%x cmdfirst=%x cmdlast=%x flags=%x )
\n
"
,
This
,
hmenu
,
indexMenu
,
idCmdFirst
,
idCmdLast
,
uFlags
);
if
(
!
(
CMF_DEFAULTONLY
&
uFlags
))
if
(
idCmdFirst
!=
0
)
FIXME
(
"We should use idCmdFirst=%d and idCmdLast=%d for command ids
\n
"
,
idCmdFirst
,
idCmdLast
);
if
(
!
(
CMF_DEFAULTONLY
&
uFlags
)
&&
This
->
cidl
>
0
)
{
if
(
uFlags
&
CMF_EXPLORE
)
if
(
!
(
uFlags
&
CMF_EXPLORE
))
_InsertMenuItem
(
hmenu
,
indexMenu
++
,
TRUE
,
FCIDM_SHVIEW_OPEN
,
MFT_STRING
,
"&Select"
,
MFS_ENABLED
);
if
(
This
->
bAllValues
)
{
if
(
This
->
bAllValues
)
{
_InsertMenuItem
(
hmenu
,
indexMenu
++
,
TRUE
,
FCIDM_SHVIEW_OPEN
,
MFT_STRING
,
"&Open"
,
MFS_ENABLED
);
_InsertMenuItem
(
hmenu
,
indexMenu
++
,
TRUE
,
FCIDM_SHVIEW_EXPLORE
,
MFT_STRING
,
"&Explore"
,
MFS_ENABLED
|
MFS_DEFAULT
);
}
else
{
_InsertMenuItem
(
hmenu
,
indexMenu
++
,
TRUE
,
FCIDM_SHVIEW_EXPLORE
,
MFT_STRING
,
"&Explore"
,
MFS_ENABLED
|
MFS_DEFAULT
);
_InsertMenuItem
(
hmenu
,
indexMenu
++
,
TRUE
,
FCIDM_SHVIEW_OPEN
,
MFT_STRING
,
"&Open"
,
MFS_ENABLED
);
}
_InsertMenuItem
(
hmenu
,
indexMenu
++
,
TRUE
,
FCIDM_SHVIEW_OPEN
,
MFT_STRING
,
"&Open"
,
MFS_ENABLED
);
_InsertMenuItem
(
hmenu
,
indexMenu
++
,
TRUE
,
FCIDM_SHVIEW_EXPLORE
,
MFT_STRING
,
"&Explore"
,
MFS_ENABLED
);
}
else
{
_InsertMenuItem
(
hmenu
,
indexMenu
++
,
TRUE
,
FCIDM_SHVIEW_OPEN
,
MFT_STRING
,
"&Select"
,
MFS_ENABLED
|
MFS_DEFAULT
);
_InsertMenuItem
(
hmenu
,
indexMenu
++
,
TRUE
,
FCIDM_SHVIEW_EXPLORE
,
MFT_STRING
,
"&Explore"
,
MFS_ENABLED
);
_InsertMenuItem
(
hmenu
,
indexMenu
++
,
TRUE
,
FCIDM_SHVIEW_OPEN
,
MFT_STRING
,
"&Open"
,
MFS_ENABLED
);
}
SetMenuDefaultItem
(
hmenu
,
0
,
MF_BYPOSITION
);
_InsertMenuItem
(
hmenu
,
indexMenu
++
,
TRUE
,
0
,
MFT_SEPARATOR
,
NULL
,
0
);
_InsertMenuItem
(
hmenu
,
indexMenu
++
,
TRUE
,
FCIDM_SHVIEW_COPY
,
MFT_STRING
,
"&Copy"
,
MFS_ENABLED
);
_InsertMenuItem
(
hmenu
,
indexMenu
++
,
TRUE
,
FCIDM_SHVIEW_CUT
,
MFT_STRING
,
"&Cut"
,
MFS_ENABLED
);
...
...
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