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
d387cf32
Commit
d387cf32
authored
Mar 03, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Use MAKEWPARAM instead of MAKELONG for menu messages.
parent
28c595e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
menu.c
dlls/user32/menu.c
+4
-4
No files found.
dlls/user32/menu.c
View file @
d387cf32
...
...
@@ -1981,7 +1981,7 @@ static void MENU_SelectItem( HWND hwndOwner, HMENU hmenu, UINT wIndex,
{
MENUITEM
*
ip
=
&
lppop
->
items
[
lppop
->
FocusedItem
];
SendMessageW
(
hwndOwner
,
WM_MENUSELECT
,
MAKE
LONG
(
ip
->
fType
&
MF_POPUP
?
wIndex
:
ip
->
wID
,
MAKE
WPARAM
(
ip
->
fType
&
MF_POPUP
?
wIndex
:
ip
->
wID
,
ip
->
fType
|
ip
->
fState
|
(
lppop
->
wFlags
&
MF_SYSMENU
)),
(
LPARAM
)
hmenu
);
}
...
...
@@ -1992,7 +1992,7 @@ static void MENU_SelectItem( HWND hwndOwner, HMENU hmenu, UINT wIndex,
if
((
pos
=
MENU_FindSubMenu
(
&
topmenu
,
hmenu
))
!=
NO_SELECTED_ITEM
){
POPUPMENU
*
ptm
=
MENU_GetMenu
(
topmenu
);
MENUITEM
*
ip
=
&
ptm
->
items
[
pos
];
SendMessageW
(
hwndOwner
,
WM_MENUSELECT
,
MAKE
LONG
(
pos
,
SendMessageW
(
hwndOwner
,
WM_MENUSELECT
,
MAKE
WPARAM
(
pos
,
ip
->
fType
|
ip
->
fState
|
(
ptm
->
wFlags
&
MF_SYSMENU
)),
(
LPARAM
)
topmenu
);
}
...
...
@@ -2386,7 +2386,7 @@ static HMENU MENU_ShowSubPopup( HWND hwndOwner, HMENU hmenu,
/* Send WM_INITMENUPOPUP message only if TPM_NONOTIFY flag is not specified */
if
(
!
(
wFlags
&
TPM_NONOTIFY
))
SendMessageW
(
hwndOwner
,
WM_INITMENUPOPUP
,
(
WPARAM
)
item
->
hSubMenu
,
MAKEL
ONG
(
menu
->
FocusedItem
,
IS_SYSTEM_MENU
(
menu
)
));
MAKEL
PARAM
(
menu
->
FocusedItem
,
IS_SYSTEM_MENU
(
menu
)
));
item
=
&
menu
->
items
[
menu
->
FocusedItem
];
rect
=
item
->
rect
;
...
...
@@ -3307,7 +3307,7 @@ static BOOL MENU_TrackMenu( HMENU hmenu, UINT wFlags, INT x, INT y,
MAKELPARAM
(
0
,
IS_SYSTEM_MENU
(
menu
))
);
}
MENU_SelectItem
(
mt
.
hOwnerWnd
,
mt
.
hTopMenu
,
NO_SELECTED_ITEM
,
FALSE
,
0
);
SendMessageW
(
mt
.
hOwnerWnd
,
WM_MENUSELECT
,
MAKE
LONG
(
0
,
0xffff
),
0
);
SendMessageW
(
mt
.
hOwnerWnd
,
WM_MENUSELECT
,
MAKE
WPARAM
(
0
,
0xffff
),
0
);
}
/* Reset the variable for hiding menu */
...
...
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