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
ce372ca4
Commit
ce372ca4
authored
Jul 15, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 15, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/header: Fix hittesting flags, extend tests a bit.
parent
af6de9d7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
header.c
dlls/comctl32/header.c
+4
-2
header.c
dlls/comctl32/tests/header.c
+6
-5
No files found.
dlls/comctl32/header.c
View file @
ce372ca4
...
...
@@ -1224,10 +1224,12 @@ HEADER_GetUnicodeFormat (const HEADER_INFO *infoPtr)
static
LRESULT
HEADER_HitTest
(
const
HEADER_INFO
*
infoPtr
,
LPHDHITTESTINFO
phti
)
{
UINT
outside
=
HHT_NOWHERE
|
HHT_ABOVE
|
HHT_BELOW
|
HHT_TOLEFT
|
HHT_TORIGHT
;
HEADER_InternalHitTest
(
infoPtr
,
&
phti
->
pt
,
&
phti
->
flags
,
&
phti
->
iItem
);
if
(
phti
->
flags
==
HHT_NOWHERE
)
return
-
1
;
if
(
phti
->
flags
&
outside
)
return
phti
->
iItem
=
-
1
;
else
return
phti
->
iItem
;
}
...
...
dlls/comctl32/tests/header.c
View file @
ce372ca4
...
...
@@ -904,6 +904,7 @@ static void test_hdm_hittest(HWND hParent)
retVal
=
SendMessage
(
hChild
,
HDM_HITTEST
,
0
,
(
LPARAM
)
&
hdHitTestInfo
);
expect
(
0
,
retVal
);
expect
(
0
,
hdHitTestInfo
.
iItem
);
expect
(
HHT_ONDIVIDER
,
hdHitTestInfo
.
flags
);
pt
.
x
=
secondItemRightBoundary
-
1
;
pt
.
y
=
bottomBoundary
-
1
;
...
...
@@ -911,15 +912,15 @@ static void test_hdm_hittest(HWND hParent)
retVal
=
SendMessage
(
hChild
,
HDM_HITTEST
,
1
,
(
LPARAM
)
&
hdHitTestInfo
);
expect
(
1
,
retVal
);
expect
(
1
,
hdHitTestInfo
.
iItem
);
expect
(
HHT_ONDIVIDER
,
hdHitTestInfo
.
flags
);
pt
.
x
=
secondItemRightBoundary
;
pt
.
y
=
bottomBoundary
+
1
;
hdHitTestInfo
.
pt
=
pt
;
todo_wine
{
retVal
=
SendMessage
(
hChild
,
HDM_HITTEST
,
0
,
(
LPARAM
)
&
hdHitTestInfo
);
expect
(
-
1
,
retVal
);
}
retVal
=
SendMessage
(
hChild
,
HDM_HITTEST
,
0
,
(
LPARAM
)
&
hdHitTestInfo
);
expect
(
-
1
,
retVal
);
expect
(
-
1
,
hdHitTestInfo
.
iItem
);
expect
(
HHT_BELOW
,
hdHitTestInfo
.
flags
);
ok_sequence
(
sequences
,
HEADER_SEQ_INDEX
,
hittest_seq
,
"hittest sequence testing"
,
FALSE
);
...
...
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