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
70cd8cb4
Commit
70cd8cb4
authored
Jul 10, 1999
by
Luc Tourangeau
Committed by
Alexandre Julliard
Jul 10, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added BN_CLICKED notification in WM_SETFOCUS.
parent
c4804be1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
button.c
controls/button.c
+10
-3
No files found.
controls/button.c
View file @
70cd8cb4
...
...
@@ -138,8 +138,8 @@ static inline LRESULT WINAPI ButtonWndProc_locked(WND* wndPtr, UINT uMsg,
case
WM_LBUTTONDOWN
:
case
WM_LBUTTONDBLCLK
:
SendMessageA
(
hWnd
,
BM_SETSTATE
,
TRUE
,
0
);
SetFocus
(
hWnd
);
SetCapture
(
hWnd
);
SetFocus
(
hWnd
);
break
;
case
WM_LBUTTONUP
:
...
...
@@ -199,9 +199,16 @@ static inline LRESULT WINAPI ButtonWndProc_locked(WND* wndPtr, UINT uMsg,
return
infoPtr
->
hFont
;
case
WM_SETFOCUS
:
if
((
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
);
SendMessageA
(
GetParent
(
hWnd
),
WM_COMMAND
,
MAKEWPARAM
(
wndPtr
->
wIDmenu
,
BN_CLICKED
),
hWnd
);
}
infoPtr
->
state
|=
BUTTON_HASFOCUS
;
if
(
style
==
BS_AUTORADIOBUTTON
)
SendMessageA
(
hWnd
,
BM_SETCHECK
,
1
,
0
);
PAINT_BUTTON
(
wndPtr
,
style
,
ODA_FOCUS
);
break
;
...
...
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