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
287c5a25
Commit
287c5a25
authored
Feb 11, 2018
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 12, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/button: Invalidate on BM_SETCHECK.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f8eb74e1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
9 deletions
+4
-9
button.c
dlls/comctl32/button.c
+1
-1
button.c
dlls/comctl32/tests/button.c
+3
-8
No files found.
dlls/comctl32/button.c
View file @
287c5a25
...
...
@@ -663,7 +663,7 @@ static LRESULT CALLBACK BUTTON_WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, L
if
((
state
&
3
)
!=
wParam
)
{
set_button_state
(
hWnd
,
(
state
&
~
3
)
|
wParam
);
paint_button
(
hWnd
,
btn_type
,
ODA_SELECT
);
InvalidateRect
(
hWnd
,
NULL
,
FALSE
);
}
if
((
btn_type
==
BS_AUTORADIOBUTTON
)
&&
(
wParam
==
BST_CHECKED
)
&&
(
style
&
WS_CHILD
))
BUTTON_CheckAutoRadioButton
(
hWnd
);
...
...
dlls/comctl32/tests/button.c
View file @
287c5a25
...
...
@@ -440,8 +440,7 @@ static const struct message setcheck_radio_redraw_seq[] =
{
WM_STYLECHANGED
,
sent
|
wparam
|
defwinproc
,
GWL_STYLE
},
{
WM_APP
,
sent
|
wparam
|
lparam
,
0
,
0
},
{
WM_PAINT
,
sent
},
{
WM_NCPAINT
,
sent
|
optional
},
/* FIXME: Wine sends it */
{
WM_ERASEBKGND
,
sent
|
defwinproc
|
optional
},
{
WM_NCPAINT
,
sent
|
defwinproc
|
optional
},
/* FIXME: Wine sends it */
{
0
}
};
...
...
@@ -661,7 +660,9 @@ static void test_button_messages(void)
SendMessageA
(
hwnd
,
BM_SETCHECK
,
BST_CHECKED
,
0
);
SendMessageA
(
hwnd
,
WM_APP
,
0
,
0
);
/* place a separator mark here */
while
(
PeekMessageA
(
&
msg
,
0
,
0
,
0
,
PM_REMOVE
))
DispatchMessageA
(
&
msg
);
ok_sequence
(
sequences
,
COMBINED_SEQ_INDEX
,
button
[
i
].
setcheck
,
"BM_SETCHECK on a button"
,
FALSE
);
state
=
SendMessageA
(
hwnd
,
BM_GETCHECK
,
0
,
0
);
if
(
button
[
i
].
style
==
BS_PUSHBUTTON
||
button
[
i
].
style
==
BS_DEFPUSHBUTTON
||
button
[
i
].
style
==
BS_GROUPBOX
||
...
...
@@ -672,16 +673,10 @@ static void test_button_messages(void)
button
[
i
].
style
==
BS_COMMANDLINK
||
button
[
i
].
style
==
BS_DEFCOMMANDLINK
)
{
ok_sequence
(
sequences
,
COMBINED_SEQ_INDEX
,
button
[
i
].
setcheck
,
"BM_SETCHECK on a button"
,
FALSE
);
state
=
SendMessageA
(
hwnd
,
BM_GETCHECK
,
0
,
0
);
ok
(
state
==
BST_UNCHECKED
,
"expected check BST_UNCHECKED, got %04x
\n
"
,
state
);
}
else
{
ok_sequence
(
sequences
,
COMBINED_SEQ_INDEX
,
button
[
i
].
setcheck
,
"BM_SETCHECK on a button"
,
TRUE
);
state
=
SendMessageA
(
hwnd
,
BM_GETCHECK
,
0
,
0
);
ok
(
state
==
BST_CHECKED
,
"expected check BST_CHECKED, got %04x
\n
"
,
state
);
}
style
=
GetWindowLongA
(
hwnd
,
GWL_STYLE
);
style
&=
~
(
WS_CHILD
|
BS_NOTIFY
|
WS_VISIBLE
);
...
...
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