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
89b62b48
Commit
89b62b48
authored
May 25, 2006
by
Mikołaj Zalewski
Committed by
Alexandre Julliard
May 26, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: header: Fix an order-related bug in HEADER_InternalHitTest.
parent
7e461db2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
header.c
dlls/comctl32/header.c
+9
-3
No files found.
dlls/comctl32/header.c
View file @
89b62b48
...
...
@@ -199,6 +199,12 @@ HEADER_NextItem(HWND hwnd, INT iItem)
return
HEADER_OrderToIndex
(
hwnd
,
HEADER_IndexToOrder
(
hwnd
,
iItem
)
+
1
);
}
static
INT
HEADER_PrevItem
(
HWND
hwnd
,
INT
iItem
)
{
return
HEADER_OrderToIndex
(
hwnd
,
HEADER_IndexToOrder
(
hwnd
,
iItem
)
-
1
);
}
static
void
HEADER_SetItemBounds
(
HWND
hwnd
)
{
...
...
@@ -594,19 +600,19 @@ HEADER_InternalHitTest (HWND hwnd, LPPOINT lpPt, UINT *pFlags, INT *pItem)
TRACE
(
"ON HEADER %d
\n
"
,
iCount
);
return
;
}
if
(
iCount
>
0
)
{
if
(
HEADER_IndexToOrder
(
hwnd
,
iCount
)
>
0
)
{
rcTest
=
rect
;
rcTest
.
right
=
rcTest
.
left
+
DIVIDER_WIDTH
;
if
(
PtInRect
(
&
rcTest
,
*
lpPt
))
{
if
(
bNoWidth
)
{
*
pFlags
|=
HHT_ONDIVOPEN
;
*
pItem
=
iCount
-
1
;
*
pItem
=
HEADER_PrevItem
(
hwnd
,
iCount
)
;
TRACE
(
"ON DIVOPEN %d
\n
"
,
*
pItem
);
return
;
}
else
{
*
pFlags
|=
HHT_ONDIVIDER
;
*
pItem
=
iCount
-
1
;
*
pItem
=
HEADER_PrevItem
(
hwnd
,
iCount
)
;
TRACE
(
"ON DIVIDER %d
\n
"
,
*
pItem
);
return
;
}
...
...
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