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
80db3ad8
Commit
80db3ad8
authored
Nov 26, 2006
by
Kevin Koltzau
Committed by
Alexandre Julliard
Nov 27, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Generate WM_APPCOMMAND messages for browser and multimedia keys.
parent
00ad155a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
13 deletions
+31
-13
defwnd.c
dlls/user32/defwnd.c
+10
-0
message.c
dlls/user32/message.c
+21
-13
No files found.
dlls/user32/defwnd.c
View file @
80db3ad8
...
...
@@ -711,6 +711,16 @@ static LRESULT DEFWND_DefWinProc( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPa
case
WM_HELP
:
SendMessageW
(
GetParent
(
hwnd
),
msg
,
wParam
,
lParam
);
break
;
case
WM_APPCOMMAND
:
{
HWND
parent
=
GetParent
(
hwnd
);
if
(
!
parent
)
HOOK_CallHooks
(
WH_SHELL
,
HSHELL_APPCOMMAND
,
wParam
,
lParam
,
TRUE
);
else
SendMessageW
(
parent
,
msg
,
wParam
,
lParam
);
break
;
}
}
return
0
;
...
...
dlls/user32/message.c
View file @
80db3ad8
...
...
@@ -1637,20 +1637,28 @@ static BOOL process_keyboard_message( MSG *msg, UINT hw_id, HWND hwnd_filter,
if
(
remove
)
{
/* Handle F1 key by sending out WM_HELP message */
if
((
msg
->
message
==
WM_KEYUP
)
&&
(
msg
->
wParam
==
VK_F1
)
&&
(
msg
->
hwnd
!=
GetDesktopWindow
())
&&
!
MENU_IsMenuActive
())
if
((
msg
->
message
==
WM_KEYDOWN
)
&&
(
msg
->
hwnd
!=
GetDesktopWindow
()))
{
HELPINFO
hi
;
hi
.
cbSize
=
sizeof
(
HELPINFO
);
hi
.
iContextType
=
HELPINFO_WINDOW
;
hi
.
iCtrlId
=
GetWindowLongPtrA
(
msg
->
hwnd
,
GWLP_ID
);
hi
.
hItemHandle
=
msg
->
hwnd
;
hi
.
dwContextId
=
GetWindowContextHelpId
(
msg
->
hwnd
);
hi
.
MousePos
=
msg
->
pt
;
SendMessageW
(
msg
->
hwnd
,
WM_HELP
,
0
,
(
LPARAM
)
&
hi
);
/* Handle F1 key by sending out WM_HELP message */
if
(
msg
->
wParam
==
VK_F1
&&
!
MENU_IsMenuActive
())
{
HELPINFO
hi
;
hi
.
cbSize
=
sizeof
(
HELPINFO
);
hi
.
iContextType
=
HELPINFO_WINDOW
;
hi
.
iCtrlId
=
GetWindowLongPtrA
(
msg
->
hwnd
,
GWLP_ID
);
hi
.
hItemHandle
=
msg
->
hwnd
;
hi
.
dwContextId
=
GetWindowContextHelpId
(
msg
->
hwnd
);
hi
.
MousePos
=
msg
->
pt
;
SendMessageW
(
msg
->
hwnd
,
WM_HELP
,
0
,
(
LPARAM
)
&
hi
);
}
else
if
(
msg
->
wParam
>=
VK_BROWSER_BACK
&&
msg
->
wParam
<=
VK_LAUNCH_APP2
)
{
/* FIXME: Process keystate */
SendMessageW
(
msg
->
hwnd
,
WM_APPCOMMAND
,
(
WPARAM
)
msg
->
hwnd
,
MAKELPARAM
(
0
,
(
FAPPCOMMAND_KEY
|
(
msg
->
wParam
-
VK_BROWSER_BACK
+
1
))));
}
}
}
...
...
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