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
1daf40a8
Commit
1daf40a8
authored
Jul 01, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 01, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/header: Always release item down state on WM_LBUTTONUP.
parent
84f14a37
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
header.c
dlls/comctl32/header.c
+7
-5
No files found.
dlls/comctl32/header.c
View file @
1daf40a8
...
@@ -1590,6 +1590,9 @@ HEADER_LButtonUp (HEADER_INFO *infoPtr, INT x, INT y)
...
@@ -1590,6 +1590,9 @@ HEADER_LButtonUp (HEADER_INFO *infoPtr, INT x, INT y)
HEADER_InternalHitTest
(
infoPtr
,
&
pt
,
&
flags
,
&
nItem
);
HEADER_InternalHitTest
(
infoPtr
,
&
pt
,
&
flags
,
&
nItem
);
if
(
infoPtr
->
bPressed
)
{
if
(
infoPtr
->
bPressed
)
{
infoPtr
->
items
[
infoPtr
->
iMoveItem
].
bDown
=
FALSE
;
if
(
infoPtr
->
bDragging
)
if
(
infoPtr
->
bDragging
)
{
{
HEADER_ITEM
*
lpItem
=
&
infoPtr
->
items
[
infoPtr
->
iMoveItem
];
HEADER_ITEM
*
lpItem
=
&
infoPtr
->
items
[
infoPtr
->
iMoveItem
];
...
@@ -1597,8 +1600,7 @@ HEADER_LButtonUp (HEADER_INFO *infoPtr, INT x, INT y)
...
@@ -1597,8 +1600,7 @@ HEADER_LButtonUp (HEADER_INFO *infoPtr, INT x, INT y)
ImageList_DragShowNolock
(
FALSE
);
ImageList_DragShowNolock
(
FALSE
);
ImageList_EndDrag
();
ImageList_EndDrag
();
lpItem
->
bDown
=
FALSE
;
if
(
infoPtr
->
iHotDivider
==
-
1
)
if
(
infoPtr
->
iHotDivider
==
-
1
)
iNewOrder
=
-
1
;
iNewOrder
=
-
1
;
else
if
(
infoPtr
->
iHotDivider
==
infoPtr
->
uNumItem
)
else
if
(
infoPtr
->
iHotDivider
==
infoPtr
->
uNumItem
)
...
@@ -1623,14 +1625,14 @@ HEADER_LButtonUp (HEADER_INFO *infoPtr, INT x, INT y)
...
@@ -1623,14 +1625,14 @@ HEADER_LButtonUp (HEADER_INFO *infoPtr, INT x, INT y)
infoPtr
->
bDragging
=
FALSE
;
infoPtr
->
bDragging
=
FALSE
;
HEADER_SetHotDivider
(
infoPtr
,
FALSE
,
-
1
);
HEADER_SetHotDivider
(
infoPtr
,
FALSE
,
-
1
);
}
}
else
if
(
!
(
infoPtr
->
dwStyle
&
HDS_DRAGDROP
)
||
!
HEADER_IsDragDistance
(
infoPtr
,
&
pt
))
else
{
{
infoPtr
->
items
[
infoPtr
->
iMoveItem
].
bDown
=
FALSE
;
hdc
=
GetDC
(
infoPtr
->
hwndSelf
);
hdc
=
GetDC
(
infoPtr
->
hwndSelf
);
HEADER_RefreshItem
(
infoPtr
,
infoPtr
->
iMoveItem
);
HEADER_RefreshItem
(
infoPtr
,
infoPtr
->
iMoveItem
);
ReleaseDC
(
infoPtr
->
hwndSelf
,
hdc
);
ReleaseDC
(
infoPtr
->
hwndSelf
,
hdc
);
HEADER_SendNotifyWithHDItemT
(
infoPtr
,
HDN_ITEMCLICKW
,
infoPtr
->
iMoveItem
,
NULL
);
if
(
!
(
infoPtr
->
dwStyle
&
HDS_DRAGDROP
)
||
!
HEADER_IsDragDistance
(
infoPtr
,
&
pt
))
HEADER_SendNotifyWithHDItemT
(
infoPtr
,
HDN_ITEMCLICKW
,
infoPtr
->
iMoveItem
,
NULL
);
}
}
TRACE
(
"Released item %d!
\n
"
,
infoPtr
->
iMoveItem
);
TRACE
(
"Released item %d!
\n
"
,
infoPtr
->
iMoveItem
);
...
...
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