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
99ff5683
Commit
99ff5683
authored
May 17, 2012
by
Piotr Caban
Committed by
Alexandre Julliard
May 17, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Don't make separator on first position hot.
parent
2d75a242
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
toolbar.c
dlls/comctl32/toolbar.c
+5
-5
No files found.
dlls/comctl32/toolbar.c
View file @
99ff5683
...
...
@@ -5485,7 +5485,7 @@ TOOLBAR_LButtonDown (TOOLBAR_INFO *infoPtr, WPARAM wParam, LPARAM lParam)
ScreenToClient
(
infoPtr
->
hwndSelf
,
&
pt
);
nHit
=
TOOLBAR_InternalHitTest
(
infoPtr
,
&
pt
,
&
button
);
if
(
!
infoPtr
->
bAnchor
||
button
)
TOOLBAR_SetHotItemEx
(
infoPtr
,
nHit
,
HICF_MOUSE
|
HICF_LMOUSE
);
TOOLBAR_SetHotItemEx
(
infoPtr
,
button
?
nHit
:
TOOLBAR_NOWHERE
,
HICF_MOUSE
|
HICF_LMOUSE
);
/* remove any left mouse button down or double-click messages
* so that we can get a toggle effect on the button */
...
...
@@ -5503,7 +5503,7 @@ TOOLBAR_LButtonDown (TOOLBAR_INFO *infoPtr, WPARAM wParam, LPARAM lParam)
btnPtr
->
fsState
|=
TBSTATE_PRESSED
;
TOOLBAR_SetHotItemEx
(
infoPtr
,
nHit
,
HICF_MOUSE
|
HICF_LMOUSE
);
TOOLBAR_SetHotItemEx
(
infoPtr
,
button
?
nHit
:
TOOLBAR_NOWHERE
,
HICF_MOUSE
|
HICF_LMOUSE
);
if
(
btnPtr
->
fsState
&
TBSTATE_ENABLED
)
InvalidateRect
(
infoPtr
->
hwndSelf
,
&
btnPtr
->
rect
,
TRUE
);
...
...
@@ -5559,7 +5559,7 @@ TOOLBAR_LButtonUp (TOOLBAR_INFO *infoPtr, WPARAM wParam, LPARAM lParam)
nHit
=
TOOLBAR_InternalHitTest
(
infoPtr
,
&
pt
,
&
button
);
if
(
!
infoPtr
->
bAnchor
||
button
)
TOOLBAR_SetHotItemEx
(
infoPtr
,
nHit
,
HICF_MOUSE
|
HICF_LMOUSE
);
TOOLBAR_SetHotItemEx
(
infoPtr
,
button
?
nHit
:
TOOLBAR_NOWHERE
,
HICF_MOUSE
|
HICF_LMOUSE
);
if
(
infoPtr
->
nButtonDrag
>=
0
)
{
RECT
rcClient
;
...
...
@@ -5619,7 +5619,7 @@ TOOLBAR_LButtonUp (TOOLBAR_INFO *infoPtr, WPARAM wParam, LPARAM lParam)
}
/* button under cursor changed so need to re-set hot item */
TOOLBAR_SetHotItemEx
(
infoPtr
,
nHit
,
HICF_MOUSE
|
HICF_LMOUSE
);
TOOLBAR_SetHotItemEx
(
infoPtr
,
button
?
nHit
:
TOOLBAR_NOWHERE
,
HICF_MOUSE
|
HICF_LMOUSE
);
infoPtr
->
nButtonDrag
=
-
1
;
TOOLBAR_SendNotify
(
&
hdr
,
infoPtr
,
TBN_TOOLBARCHANGE
);
...
...
@@ -5849,7 +5849,7 @@ TOOLBAR_MouseMove (TOOLBAR_INFO *infoPtr, WPARAM wParam, LPARAM lParam)
if
(((
infoPtr
->
dwStyle
&
TBSTYLE_FLAT
)
||
GetWindowTheme
(
infoPtr
->
hwndSelf
))
&&
(
!
infoPtr
->
bAnchor
||
button
))
TOOLBAR_SetHotItemEx
(
infoPtr
,
nHit
,
HICF_MOUSE
);
TOOLBAR_SetHotItemEx
(
infoPtr
,
button
?
nHit
:
TOOLBAR_NOWHERE
,
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