Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
6f0560df
Commit
6f0560df
authored
Apr 11, 2010
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 12, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Set WM_EXITMENULOOP wParam same way as for WM_ENTERMENULOOP.
parent
ab53187c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
menu.c
dlls/user32/menu.c
+6
-5
No files found.
dlls/user32/menu.c
View file @
6f0560df
...
...
@@ -3292,14 +3292,15 @@ static BOOL MENU_InitTracking(HWND hWnd, HMENU hMenu, BOOL bPopup, UINT wFlags)
return
TRUE
;
}
/***********************************************************************
* MENU_ExitTracking
*/
static
BOOL
MENU_ExitTracking
(
HWND
hWnd
)
static
BOOL
MENU_ExitTracking
(
HWND
hWnd
,
BOOL
bPopup
)
{
TRACE
(
"hwnd=%p
\n
"
,
hWnd
);
SendMessageW
(
hWnd
,
WM_EXITMENULOOP
,
0
,
0
);
SendMessageW
(
hWnd
,
WM_EXITMENULOOP
,
bPopup
,
0
);
ShowCaret
(
0
);
top_popup
=
0
;
top_popup_hmenu
=
NULL
;
...
...
@@ -3322,7 +3323,7 @@ void MENU_TrackMouseMenuBar( HWND hWnd, INT ht, POINT pt )
{
MENU_InitTracking
(
hWnd
,
hMenu
,
FALSE
,
wFlags
);
MENU_TrackMenu
(
hMenu
,
wFlags
,
pt
.
x
,
pt
.
y
,
hWnd
,
NULL
);
MENU_ExitTracking
(
hWnd
);
MENU_ExitTracking
(
hWnd
,
FALSE
);
}
}
...
...
@@ -3384,7 +3385,7 @@ void MENU_TrackKbdMenuBar( HWND hwnd, UINT wParam, WCHAR wChar)
track_menu:
MENU_TrackMenu
(
hTrackMenu
,
wFlags
,
0
,
0
,
hwnd
,
NULL
);
MENU_ExitTracking
(
hwnd
);
MENU_ExitTracking
(
hwnd
,
FALSE
);
}
/**********************************************************************
...
...
@@ -3424,7 +3425,7 @@ BOOL WINAPI TrackPopupMenuEx( HMENU hMenu, UINT wFlags, INT x, INT y,
if
(
MENU_ShowPopup
(
hWnd
,
hMenu
,
0
,
wFlags
,
x
,
y
,
0
,
0
))
ret
=
MENU_TrackMenu
(
hMenu
,
wFlags
|
TPM_POPUPMENU
,
0
,
0
,
hWnd
,
lpTpm
?
&
lpTpm
->
rcExclude
:
NULL
);
MENU_ExitTracking
(
hWnd
);
MENU_ExitTracking
(
hWnd
,
TRUE
);
return
ret
;
}
...
...
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