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
7d17bc55
Commit
7d17bc55
authored
Jun 27, 2011
by
Piotr Caban
Committed by
Alexandre Julliard
Jun 27, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Make themed button hot when mouse is over it.
parent
d2c9a5cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
theme_button.c
dlls/comctl32/theme_button.c
+31
-0
No files found.
dlls/comctl32/theme_button.c
View file @
7d17bc55
...
...
@@ -317,6 +317,37 @@ LRESULT CALLBACK THEMING_ButtonSubclassProc(HWND hwnd, UINT msg,
RDW_FRAME
|
RDW_INVALIDATE
|
RDW_UPDATENOW
);
return
THEMING_CallOriginalClass
(
hwnd
,
msg
,
wParam
,
lParam
);
case
WM_MOUSEMOVE
:
{
TRACKMOUSEEVENT
mouse_event
;
mouse_event
.
cbSize
=
sizeof
(
TRACKMOUSEEVENT
);
mouse_event
.
dwFlags
=
TME_QUERY
;
if
(
!
TrackMouseEvent
(
&
mouse_event
)
||
!
(
mouse_event
.
dwFlags
&
(
TME_HOVER
|
TME_LEAVE
)))
{
mouse_event
.
dwFlags
=
TME_HOVER
|
TME_LEAVE
;
mouse_event
.
hwndTrack
=
hwnd
;
mouse_event
.
dwHoverTime
=
1
;
TrackMouseEvent
(
&
mouse_event
);
}
break
;
}
case
WM_MOUSEHOVER
:
{
int
state
=
(
int
)
SendMessageW
(
hwnd
,
BM_GETSTATE
,
0
,
0
);
SetWindowLongW
(
hwnd
,
0
,
state
|
BST_HOT
);
InvalidateRect
(
hwnd
,
NULL
,
FALSE
);
break
;
}
case
WM_MOUSELEAVE
:
{
int
state
=
(
int
)
SendMessageW
(
hwnd
,
BM_GETSTATE
,
0
,
0
);
SetWindowLongW
(
hwnd
,
0
,
state
&
(
~
BST_HOT
));
InvalidateRect
(
hwnd
,
NULL
,
FALSE
);
break
;
}
default:
/* Call old proc */
return
THEMING_CallOriginalClass
(
hwnd
,
msg
,
wParam
,
lParam
);
...
...
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