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
010f31f4
Commit
010f31f4
authored
Oct 14, 2006
by
Mikołaj Zalewski
Committed by
Alexandre Julliard
Oct 14, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: toolbar: Use nHotItem not nOldHit for the hot item in MouseLeave.
parent
d929cec6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
toolbar.c
dlls/comctl32/toolbar.c
+6
-5
No files found.
dlls/comctl32/toolbar.c
View file @
010f31f4
...
...
@@ -5973,14 +5973,15 @@ static LRESULT
TOOLBAR_MouseLeave
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
{
TOOLBAR_INFO
*
infoPtr
=
TOOLBAR_GetInfoPtr
(
hwnd
);
TBUTTON_INFO
*
hotBtnPtr
;
hotBtnPtr
=
&
infoPtr
->
buttons
[
infoPtr
->
nOldHit
];
/* don't remove hot effects when in anchor highlighting mode or when a
* drop-down button is pressed */
if
(
!
infoPtr
->
bAnchor
&&
(
infoPtr
->
nOldHit
<
0
||
!
hotBtnPtr
->
bDropDownPressed
))
if
(
infoPtr
->
nHotItem
>=
0
&&
!
infoPtr
->
bAnchor
)
{
TBUTTON_INFO
*
hotBtnPtr
=
&
infoPtr
->
buttons
[
infoPtr
->
nHotItem
];
if
(
!
hotBtnPtr
->
bDropDownPressed
)
TOOLBAR_SetHotItemEx
(
infoPtr
,
TOOLBAR_NOWHERE
,
HICF_MOUSE
);
}
if
(
infoPtr
->
nOldHit
<
0
)
return
TRUE
;
...
...
@@ -5996,7 +5997,7 @@ TOOLBAR_MouseLeave (HWND hwnd, WPARAM wParam, LPARAM lParam)
btnPtr
->
fsState
&=
~
TBSTATE_PRESSED
;
rc1
=
hotB
tnPtr
->
rect
;
rc1
=
b
tnPtr
->
rect
;
InflateRect
(
&
rc1
,
1
,
1
);
InvalidateRect
(
hwnd
,
&
rc1
,
TRUE
);
}
...
...
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