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
874e14c5
Commit
874e14c5
authored
Mar 19, 2002
by
Duane Clark
Committed by
Alexandre Julliard
Mar 19, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TOOLBAR_LButtonUp should work even if ReleaseCapture was already
called.
parent
5b3855bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
15 deletions
+8
-15
toolbar.c
dlls/comctl32/toolbar.c
+8
-15
No files found.
dlls/comctl32/toolbar.c
View file @
874e14c5
...
...
@@ -4482,18 +4482,16 @@ TOOLBAR_LButtonUp (HWND hwnd, WPARAM wParam, LPARAM lParam)
if
((
infoPtr
->
nHotItem
>=
0
)
&&
(
nHit
!=
-
1
))
infoPtr
->
buttons
[
infoPtr
->
nHotItem
].
bHot
=
TRUE
;
if
((
infoPtr
->
bCaptured
)
&&
(
infoPtr
->
nButtonDown
>=
0
))
{
btnPtr
=
&
infoPtr
->
buttons
[
infoPtr
->
nButtonDown
];
btnPtr
->
fsState
&=
~
TBSTATE_PRESSED
;
if
(
nHit
==
infoPtr
->
nButtonDown
)
{
if
(
btnPtr
->
fsStyle
&
TBSTYLE_CHECK
)
{
if
(
btnPtr
->
fsStyle
&
TBSTYLE_CHECK
)
{
if
(
btnPtr
->
fsStyle
&
TBSTYLE_GROUP
)
{
nOldIndex
=
TOOLBAR_GetCheckedGroupButtonIndex
(
infoPtr
,
infoPtr
->
nButtonDown
);
if
(
nOldIndex
==
infoPtr
->
nButtonDown
)
nHit
);
if
(
nOldIndex
==
nHit
)
bSendMessage
=
FALSE
;
if
((
nOldIndex
!=
infoPtr
->
nButtonDown
)
&&
if
((
nOldIndex
!=
nHit
)
&&
(
nOldIndex
!=
-
1
))
infoPtr
->
buttons
[
nOldIndex
].
fsState
&=
~
TBSTATE_CHECKED
;
btnPtr
->
fsState
|=
TBSTATE_CHECKED
;
...
...
@@ -4504,10 +4502,7 @@ TOOLBAR_LButtonUp (HWND hwnd, WPARAM wParam, LPARAM lParam)
else
btnPtr
->
fsState
|=
TBSTATE_CHECKED
;
}
}
}
else
bSendMessage
=
FALSE
;
if
(
nOldIndex
!=
-
1
)
{
...
...
@@ -4520,7 +4515,8 @@ TOOLBAR_LButtonUp (HWND hwnd, WPARAM wParam, LPARAM lParam)
* that resets bCaptured and btn TBSTATE_PRESSED flags,
* and obliterates nButtonDown and nOldHit (see TOOLBAR_CaptureChanged)
*/
ReleaseCapture
();
if
((
infoPtr
->
bCaptured
)
&&
(
infoPtr
->
nButtonDown
>=
0
))
ReleaseCapture
();
/* Issue NM_RELEASEDCAPTURE to parent to let him know it is released */
TOOLBAR_SendNotify
((
NMHDR
*
)
&
hdr
,
infoPtr
,
...
...
@@ -4541,9 +4537,8 @@ TOOLBAR_LButtonUp (HWND hwnd, WPARAM wParam, LPARAM lParam)
TOOLBAR_SendNotify
((
NMHDR
*
)
&
nmtb
,
infoPtr
,
TBN_ENDDRAG
);
if
(
bSendMessage
)
SendMessageA
(
infoPtr
->
hwndNotify
,
WM_COMMAND
,
MAKEWPARAM
(
btnPtr
->
idCommand
,
0
),
(
LPARAM
)
hwnd
);
SendMessageA
(
infoPtr
->
hwndNotify
,
WM_COMMAND
,
MAKEWPARAM
(
infoPtr
->
buttons
[
nHit
].
idCommand
,
0
),
(
LPARAM
)
hwnd
);
/* !!! Undocumented - toolbar at 4.71 level and above sends
* either NMRCLICK or NM_CLICK with the NMMOUSE structure.
...
...
@@ -4553,8 +4548,6 @@ TOOLBAR_LButtonUp (HWND hwnd, WPARAM wParam, LPARAM lParam)
nmmouse
.
dwItemData
=
btnPtr
->
dwData
;
TOOLBAR_SendNotify
((
NMHDR
*
)
&
nmmouse
,
infoPtr
,
NM_CLICK
);
}
return
0
;
}
...
...
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