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
e8e42e46
Commit
e8e42e46
authored
Jan 28, 2005
by
Thomas Weidenmueller
Committed by
Alexandre Julliard
Jan 28, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
When a toolbar doesn't have the TBSTYLE_FLAT style redrawing the
buttons when moving the mouse is not necessary.
parent
4046846a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
17 deletions
+19
-17
toolbar.c
dlls/comctl32/toolbar.c
+19
-17
No files found.
dlls/comctl32/toolbar.c
View file @
e8e42e46
...
...
@@ -6080,24 +6080,26 @@ TOOLBAR_MouseMove (HWND hwnd, WPARAM wParam, LPARAM lParam)
TRACKMOUSEEVENT
trackinfo
;
INT
nHit
;
TBUTTON_INFO
*
btnPtr
;
if
(
infoPtr
->
dwStyle
&
TBSTYLE_FLAT
)
{
/* fill in the TRACKMOUSEEVENT struct */
trackinfo
.
cbSize
=
sizeof
(
TRACKMOUSEEVENT
);
trackinfo
.
dwFlags
=
TME_QUERY
;
trackinfo
.
hwndTrack
=
hwnd
;
trackinfo
.
dwHoverTime
=
HOVER_DEFAULT
;
/* call _TrackMouseEvent to see if we are currently tracking for this hwnd */
_TrackMouseEvent
(
&
trackinfo
);
/* fill in the TRACKMOUSEEVENT struct */
trackinfo
.
cbSize
=
sizeof
(
TRACKMOUSEEVENT
);
trackinfo
.
dwFlags
=
TME_QUERY
;
trackinfo
.
hwndTrack
=
hwnd
;
trackinfo
.
dwHoverTime
=
HOVER_DEFAULT
;
/* call _TrackMouseEvent to see if we are currently tracking for this hwnd */
_TrackMouseEvent
(
&
trackinfo
);
/* Make sure tracking is enabled so we receive a WM_MOUSELEAVE message */
if
(
!
(
trackinfo
.
dwFlags
&
TME_LEAVE
))
{
trackinfo
.
dwFlags
=
TME_LEAVE
;
/* notify upon leaving */
/* Make sure tracking is enabled so we receive a WM_MOUSELEAVE message */
if
(
!
(
trackinfo
.
dwFlags
&
TME_LEAVE
))
{
trackinfo
.
dwFlags
=
TME_LEAVE
;
/* notify upon leaving */
/* call TRACKMOUSEEVENT so we receive a WM_MOUSELEAVE message */
/* and can properly deactivate the hot toolbar button */
_TrackMouseEvent
(
&
trackinfo
);
}
/* call TRACKMOUSEEVENT so we receive a WM_MOUSELEAVE message */
/* and can properly deactivate the hot toolbar button */
_TrackMouseEvent
(
&
trackinfo
);
}
}
if
(
infoPtr
->
hwndToolTip
)
TOOLBAR_RelayEvent
(
infoPtr
->
hwndToolTip
,
hwnd
,
...
...
@@ -6108,7 +6110,7 @@ TOOLBAR_MouseMove (HWND hwnd, WPARAM wParam, LPARAM lParam)
nHit
=
TOOLBAR_InternalHitTest
(
hwnd
,
&
pt
);
if
(
!
infoPtr
->
bAnchor
||
(
nHit
>=
0
))
if
(
(
infoPtr
->
dwStyle
&
TBSTYLE_FLAT
)
&&
(
!
infoPtr
->
bAnchor
||
(
nHit
>=
0
)
))
TOOLBAR_SetHotItemEx
(
infoPtr
,
nHit
,
HICF_MOUSE
);
if
(
infoPtr
->
nOldHit
!=
nHit
)
...
...
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