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
b64aa246
Commit
b64aa246
authored
May 12, 2000
by
Susan Farley
Committed by
Alexandre Julliard
May 12, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Like the AUTORADIOBUTTON, the parent of a RADIOBUTTON style button
should be sent a BN_CLICKED when it receives the focus.
parent
40249c65
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
button.c
controls/button.c
+3
-2
No files found.
controls/button.c
View file @
b64aa246
...
...
@@ -236,12 +236,13 @@ static inline LRESULT WINAPI ButtonWndProc_locked(WND* wndPtr, UINT uMsg,
return
infoPtr
->
hFont
;
case
WM_SETFOCUS
:
if
((
style
==
BS_AUTORADIOBUTTON
)
&&
(
GetCapture
()
!=
hWnd
)
&&
if
((
style
==
BS_
RADIOBUTTON
||
style
==
BS_
AUTORADIOBUTTON
)
&&
(
GetCapture
()
!=
hWnd
)
&&
!
(
SendMessageA
(
hWnd
,
BM_GETCHECK
,
0
,
0
)
&
BST_CHECKED
))
{
/* The notification is sent when the button (BS_AUTORADIOBUTTON)
is unckecked and the focus was not given by a mouse click. */
SendMessageA
(
hWnd
,
BM_SETCHECK
,
TRUE
,
0
);
if
(
style
==
BS_AUTORADIOBUTTON
)
SendMessageA
(
hWnd
,
BM_SETCHECK
,
BUTTON_CHECKED
,
0
);
SendMessageA
(
GetParent
(
hWnd
),
WM_COMMAND
,
MAKEWPARAM
(
wndPtr
->
wIDmenu
,
BN_CLICKED
),
hWnd
);
}
...
...
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