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
7a4e3a10
Commit
7a4e3a10
authored
Dec 03, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Get rid of the internal _InsertMenuItem function.
parent
cf8c1d60
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
40 deletions
+22
-40
shell32_main.h
dlls/shell32/shell32_main.h
+0
-3
shlview.c
dlls/shell32/shlview.c
+21
-5
shv_item_cmenu.c
dlls/shell32/shv_item_cmenu.c
+1
-32
No files found.
dlls/shell32/shell32_main.h
View file @
7a4e3a10
...
...
@@ -172,9 +172,6 @@ HGLOBAL16 WINAPI InternalExtractIcon16(HINSTANCE16,LPCSTR,UINT16,WORD);
BOOL16
WINAPI
ShellAbout16
(
HWND16
,
LPCSTR
,
LPCSTR
,
HICON16
);
BOOL16
WINAPI
AboutDlgProc16
(
HWND16
,
UINT16
,
WPARAM16
,
LPARAM
);
void
WINAPI
_InsertMenuItem
(
HMENU
hmenu
,
UINT
indexMenu
,
BOOL
fByPosition
,
UINT
wID
,
UINT
fType
,
LPCSTR
dwTypeData
,
UINT
fState
);
static
inline
BOOL
SHELL_OsIsUnicode
(
void
)
{
/* if high-bit of version is 0, we are emulating NT */
...
...
dlls/shell32/shlview.c
View file @
7a4e3a10
...
...
@@ -768,9 +768,21 @@ static void ShellView_MergeFileMenu(IShellViewImpl * This, HMENU hSubMenu)
if
(
hSubMenu
)
{
/*insert This item at the beginning of the menu */
_InsertMenuItem
(
hSubMenu
,
0
,
TRUE
,
0
,
MFT_SEPARATOR
,
NULL
,
MFS_ENABLED
);
_InsertMenuItem
(
hSubMenu
,
0
,
TRUE
,
IDM_MYFILEITEM
,
MFT_STRING
,
"dummy45"
,
MFS_ENABLED
);
MENUITEMINFOA
mii
;
mii
.
cbSize
=
sizeof
(
mii
);
mii
.
fMask
=
MIIM_ID
|
MIIM_TYPE
;
mii
.
wID
=
0
;
mii
.
fType
=
MFT_SEPARATOR
;
InsertMenuItemA
(
hSubMenu
,
0
,
TRUE
,
&
mii
);
mii
.
cbSize
=
sizeof
(
mii
);
mii
.
fMask
=
MIIM_ID
|
MIIM_TYPE
|
MIIM_STATE
;
mii
.
dwTypeData
=
(
LPSTR
)
"dummy45"
;
mii
.
fState
=
MFS_ENABLED
;
mii
.
wID
=
IDM_MYFILEITEM
;
mii
.
fType
=
MFT_STRING
;
InsertMenuItemA
(
hSubMenu
,
0
,
TRUE
,
&
mii
);
}
TRACE
(
"--
\n
"
);
}
...
...
@@ -788,9 +800,13 @@ static void ShellView_MergeViewMenu(IShellViewImpl * This, HMENU hSubMenu)
MENUITEMINFOA
mii
;
static
char
view
[]
=
"View"
;
_InsertMenuItem
(
hSubMenu
,
FCIDM_MENU_VIEW_SEP_OPTIONS
,
FALSE
,
0
,
MFT_SEPARATOR
,
NULL
,
MFS_ENABLED
);
ZeroMemory
(
&
mii
,
sizeof
(
mii
));
mii
.
cbSize
=
sizeof
(
mii
);
mii
.
fMask
=
MIIM_ID
|
MIIM_TYPE
;
mii
.
wID
=
0
;
mii
.
fType
=
MFT_SEPARATOR
;
InsertMenuItemA
(
hSubMenu
,
FCIDM_MENU_VIEW_SEP_OPTIONS
,
FALSE
,
&
mii
);
ZeroMemory
(
&
mii
,
sizeof
(
mii
));
mii
.
cbSize
=
sizeof
(
mii
);
mii
.
fMask
=
MIIM_SUBMENU
|
MIIM_TYPE
|
MIIM_DATA
;
mii
.
fType
=
MFT_STRING
;
...
...
dlls/shell32/shv_item_cmenu.c
View file @
7a4e3a10
...
...
@@ -177,38 +177,7 @@ static ULONG WINAPI ISvItemCm_fnRelease(IContextMenu2 *iface)
return
refCount
;
}
/**************************************************************************
* ICM_InsertItem()
*/
void
WINAPI
_InsertMenuItem
(
HMENU
hmenu
,
UINT
indexMenu
,
BOOL
fByPosition
,
UINT
wID
,
UINT
fType
,
LPCSTR
dwTypeData
,
UINT
fState
)
{
MENUITEMINFOA
mii
;
ZeroMemory
(
&
mii
,
sizeof
(
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
=
(
LPSTR
)
dwTypeData
;
mii
.
fState
=
fState
;
}
mii
.
wID
=
wID
;
mii
.
fType
=
fType
;
InsertMenuItemA
(
hmenu
,
indexMenu
,
fByPosition
,
&
mii
);
}
static
void
WINAPI
_InsertMenuItemW
(
static
void
_InsertMenuItemW
(
HMENU
hmenu
,
UINT
indexMenu
,
BOOL
fByPosition
,
...
...
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