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
b1537259
Commit
b1537259
authored
Dec 11, 2001
by
Bill Medland
Committed by
Alexandre Julliard
Dec 11, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
For a radio button even if the initial style includes WS_TABSTOP the
first BM_SETCHECK 0 will clear it (even if the state was clear).
parent
32ca21ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
button.c
controls/button.c
+6
-6
No files found.
controls/button.c
View file @
b1537259
...
...
@@ -371,14 +371,14 @@ static LRESULT WINAPI ButtonWndProc_common(HWND hWnd, UINT uMsg,
case
BM_SETCHECK
:
if
(
wParam
>
maxCheckState
[
btn_type
])
wParam
=
maxCheckState
[
btn_type
];
state
=
get_button_state
(
hWnd
);
if
((
btn_type
==
BS_RADIOBUTTON
)
||
(
btn_type
==
BS_AUTORADIOBUTTON
))
{
if
(
wParam
)
style
|=
WS_TABSTOP
;
else
style
&=
~
WS_TABSTOP
;
SetWindowLongA
(
hWnd
,
GWL_STYLE
,
style
);
}
if
((
state
&
3
)
!=
wParam
)
{
if
((
btn_type
==
BS_RADIOBUTTON
)
||
(
btn_type
==
BS_AUTORADIOBUTTON
))
{
if
(
wParam
)
style
|=
WS_TABSTOP
;
else
style
&=
~
WS_TABSTOP
;
SetWindowLongA
(
hWnd
,
GWL_STYLE
,
style
);
}
set_button_state
(
hWnd
,
(
state
&
~
3
)
|
wParam
);
paint_button
(
hWnd
,
btn_type
,
ODA_SELECT
);
}
...
...
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