Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
fdb74127
Commit
fdb74127
authored
Jul 12, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 13, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/header: Update item bounds on WM_SIZE.
parent
fac7daf0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
24 deletions
+11
-24
header.c
dlls/comctl32/header.c
+1
-2
header.c
dlls/comctl32/tests/header.c
+10
-22
No files found.
dlls/comctl32/header.c
View file @
fdb74127
...
...
@@ -247,8 +247,7 @@ HEADER_SetItemBounds (HEADER_INFO *infoPtr)
static
LRESULT
HEADER_Size
(
HEADER_INFO
*
infoPtr
)
{
infoPtr
->
bRectsValid
=
FALSE
;
HEADER_SetItemBounds
(
infoPtr
);
return
0
;
}
...
...
dlls/comctl32/tests/header.c
View file @
fdb74127
...
...
@@ -819,10 +819,8 @@ static void test_hdm_getitemrect(HWND hParent)
expect
(
80
,
rect
.
left
);
expect
(
0
,
rect
.
top
);
expect
(
160
,
rect
.
right
);
todo_wine
{
expect
(
g_customheight
,
rect
.
bottom
);
}
expect
(
g_customheight
,
rect
.
bottom
);
retVal
=
SendMessage
(
hChild
,
HDM_GETITEMRECT
,
0
,
(
LPARAM
)
&
rect
);
ok
(
retVal
==
TRUE
,
"Getting item rect should TRUE, got %d
\n
"
,
retVal
);
...
...
@@ -831,10 +829,8 @@ static void test_hdm_getitemrect(HWND hParent)
expect
(
0
,
rect
.
top
);
expect
(
80
,
rect
.
right
);
todo_wine
{
expect
(
g_customheight
,
rect
.
bottom
);
}
expect
(
g_customheight
,
rect
.
bottom
);
retVal
=
SendMessage
(
hChild
,
HDM_GETITEMRECT
,
10
,
(
LPARAM
)
&
rect
);
ok
(
retVal
==
0
,
"Getting rect of nonexistent item should return 0, got %d
\n
"
,
retVal
);
...
...
@@ -906,20 +902,14 @@ static void test_hdm_hittest(HWND hParent)
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
retVal
=
SendMessage
(
hChild
,
HDM_HITTEST
,
0
,
(
LPARAM
)
&
hdHitTestInfo
);
todo_wine
{
expect
(
0
,
retVal
);
expect
(
0
,
hdHitTestInfo
.
iItem
);
}
expect
(
0
,
retVal
);
expect
(
0
,
hdHitTestInfo
.
iItem
);
pt
.
x
=
secondItemRightBoundary
-
1
;
pt
.
y
=
bottomBoundary
-
1
;
hdHitTestInfo
.
pt
=
pt
;
retVal
=
SendMessage
(
hChild
,
HDM_HITTEST
,
1
,
(
LPARAM
)
&
hdHitTestInfo
);
todo_wine
{
expect
(
1
,
retVal
);
}
expect
(
1
,
retVal
);
expect
(
1
,
hdHitTestInfo
.
iItem
);
pt
.
x
=
secondItemRightBoundary
;
...
...
@@ -950,11 +940,9 @@ static void test_hdm_sethotdivider(HWND hParent)
"adder header control to parent"
,
FALSE
);
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
todo_wine
{
retVal
=
SendMessage
(
hChild
,
HDM_SETHOTDIVIDER
,
TRUE
,
MAKELPARAM
(
5
,
5
));
expect
(
0
,
retVal
);
}
retVal
=
SendMessage
(
hChild
,
HDM_SETHOTDIVIDER
,
TRUE
,
MAKELPARAM
(
5
,
5
));
expect
(
0
,
retVal
);
retVal
=
SendMessage
(
hChild
,
HDM_SETHOTDIVIDER
,
FALSE
,
100
);
expect
(
100
,
retVal
);
retVal
=
SendMessage
(
hChild
,
HDM_SETHOTDIVIDER
,
FALSE
,
1
);
...
...
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