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
2948ec6a
Commit
2948ec6a
authored
Mar 10, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 10, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Button should get captured when highlighted with VK_SPACE.
parent
5e568455
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
button.c
dlls/user32/button.c
+1
-0
msg.c
dlls/user32/tests/msg.c
+11
-0
No files found.
dlls/user32/button.c
View file @
2948ec6a
...
...
@@ -309,6 +309,7 @@ static LRESULT ButtonWndProc_common(HWND hWnd, UINT uMsg,
{
SendMessageW
(
hWnd
,
BM_SETSTATE
,
TRUE
,
0
);
set_button_state
(
hWnd
,
get_button_state
(
hWnd
)
|
BUTTON_BTNPRESSED
);
SetCapture
(
hWnd
);
}
break
;
...
...
dlls/user32/tests/msg.c
View file @
2948ec6a
...
...
@@ -5213,6 +5213,17 @@ static void test_button_messages(void)
DWORD
dlg_code
;
HFONT
zfont
;
/* selection with VK_SPACE should capture button window */
hwnd
=
CreateWindowExA
(
0
,
"button"
,
"test"
,
BS_CHECKBOX
|
WS_VISIBLE
|
WS_POPUP
,
0
,
0
,
50
,
14
,
0
,
0
,
0
,
NULL
);
ok
(
hwnd
!=
0
,
"Failed to create button window
\n
"
);
ReleaseCapture
();
SetFocus
(
hwnd
);
SendMessageA
(
hwnd
,
WM_KEYDOWN
,
VK_SPACE
,
0
);
ok
(
GetCapture
()
==
hwnd
,
"Should be captured on VK_SPACE WM_KEYDOWN
\n
"
);
SendMessageA
(
hwnd
,
WM_KEYUP
,
VK_SPACE
,
0
);
DestroyWindow
(
hwnd
);
subclass_button
();
for
(
i
=
0
;
i
<
sizeof
(
button
)
/
sizeof
(
button
[
0
]);
i
++
)
...
...
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