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
8b07a8c8
Commit
8b07a8c8
authored
Sep 25, 2004
by
Ken Belleau
Committed by
Alexandre Julliard
Sep 25, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Removed code that took the focus away from the buttons.
- Make the buttons forward WM_KEYDOWN to their parent.
parent
31ec065b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
5 deletions
+23
-5
winhelp.c
programs/winhelp/winhelp.c
+23
-5
No files found.
programs/winhelp/winhelp.c
View file @
8b07a8c8
...
...
@@ -782,6 +782,18 @@ static LRESULT CALLBACK WINHELP_ButtonBoxWndProc(HWND hWnd, UINT msg, WPARAM wPa
case
WM_COMMAND
:
SendMessage
(
GetParent
(
hWnd
),
msg
,
wParam
,
lParam
);
break
;
case
WM_KEYDOWN
:
switch
(
wParam
)
{
case
VK_UP
:
case
VK_DOWN
:
case
VK_PRIOR
:
case
VK_NEXT
:
case
VK_ESCAPE
:
return
SendMessage
(
GetParent
(
hWnd
),
msg
,
wParam
,
lParam
);
}
break
;
}
return
DefWindowProc
(
hWnd
,
msg
,
wParam
,
lParam
);
...
...
@@ -793,13 +805,19 @@ static LRESULT CALLBACK WINHELP_ButtonBoxWndProc(HWND hWnd, UINT msg, WPARAM wPa
*/
static
LRESULT
CALLBACK
WINHELP_ButtonWndProc
(
HWND
hWnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
WINHELP_WINDOW
*
win
;
if
(
msg
==
WM_LBUTTONUP
)
if
(
msg
==
WM_KEYDOWN
)
{
win
=
(
WINHELP_WINDOW
*
)
GetWindowLong
(
GetParent
(
hWnd
),
0
);
SetFocus
(
win
->
hMainWnd
);
switch
(
wParam
)
{
case
VK_UP
:
case
VK_DOWN
:
case
VK_PRIOR
:
case
VK_NEXT
:
case
VK_ESCAPE
:
return
SendMessage
(
GetParent
(
hWnd
),
msg
,
wParam
,
lParam
);
}
}
return
CallWindowProc
(
Globals
.
button_proc
,
hWnd
,
msg
,
wParam
,
lParam
);
}
...
...
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