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
2abf2c7a
Commit
2abf2c7a
authored
Sep 20, 2004
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Sep 20, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make menu code cope with WM_SYSKEY*/WM_SYSCHAR messages.
Unblock menu loop if a window being destroyed owns a tracked menu.
parent
970b2218
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
13 deletions
+12
-13
controls.h
dlls/user/controls.h
+1
-1
menu.c
dlls/user/menu.c
+8
-12
win.c
windows/win.c
+3
-0
No files found.
dlls/user/controls.h
View file @
2abf2c7a
...
...
@@ -54,7 +54,7 @@ extern HWND ICONTITLE_Create( HWND hwnd );
/* menu controls */
extern
BOOL
MENU_Init
(
void
);
extern
BOOL
MENU_IsMenuActive
(
void
);
extern
HWND
MENU_IsMenuActive
(
void
);
extern
HMENU
MENU_GetSysMenu
(
HWND
hWndOwner
,
HMENU
hSysPopup
);
extern
UINT
MENU_GetMenuBarHeight
(
HWND
hwnd
,
UINT
menubarWidth
,
INT
orgX
,
INT
orgY
);
...
...
dlls/user/menu.c
View file @
2abf2c7a
...
...
@@ -2010,9 +2010,9 @@ static HMENU MENU_ShowSubPopup( HWND hwndOwner, HMENU hmenu,
/**********************************************************************
* MENU_IsMenuActive
*/
BOOL
MENU_IsMenuActive
(
void
)
HWND
MENU_IsMenuActive
(
void
)
{
return
(
top_popup
!=
0
)
;
return
top_popup
;
}
/***********************************************************************
...
...
@@ -2690,8 +2690,13 @@ static BOOL MENU_TrackMenu( HMENU hmenu, UINT wFlags, INT x, INT y,
switch
(
msg
.
message
)
{
case
WM_KEYDOWN
:
case
WM_SYSKEYDOWN
:
switch
(
msg
.
wParam
)
{
case
VK_MENU
:
fEndMenu
=
TRUE
;
break
;
case
VK_HOME
:
case
VK_END
:
MENU_SelectItem
(
mt
.
hOwnerWnd
,
mt
.
hCurrentMenu
,
...
...
@@ -2744,17 +2749,8 @@ static BOOL MENU_TrackMenu( HMENU hmenu, UINT wFlags, INT x, INT y,
}
break
;
/* WM_KEYDOWN */
case
WM_SYSKEYDOWN
:
switch
(
msg
.
wParam
)
{
case
VK_MENU
:
fEndMenu
=
TRUE
;
break
;
}
break
;
/* WM_SYSKEYDOWN */
case
WM_CHAR
:
case
WM_SYSCHAR
:
{
UINT
pos
;
...
...
windows/win.c
View file @
2abf2c7a
...
...
@@ -1439,6 +1439,9 @@ BOOL WINAPI DestroyWindow( HWND hwnd )
if
(
HOOK_CallHooks
(
WH_CBT
,
HCBT_DESTROYWND
,
(
WPARAM
)
hwnd
,
0
,
TRUE
))
return
FALSE
;
if
(
MENU_IsMenuActive
()
==
hwnd
)
EndMenu
();
is_child
=
(
GetWindowLongW
(
hwnd
,
GWL_STYLE
)
&
WS_CHILD
)
!=
0
;
if
(
is_child
)
...
...
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