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
32bfaeb3
Commit
32bfaeb3
authored
Jan 22, 2023
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 26, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/header: Do not touch 'hwnd' field in HDM_LAYOUT.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
38a71457
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
header.c
dlls/comctl32/header.c
+0
-1
listview.c
dlls/comctl32/listview.c
+1
-1
header.c
dlls/comctl32/tests/header.c
+4
-0
No files found.
dlls/comctl32/header.c
View file @
32bfaeb3
...
...
@@ -1465,7 +1465,6 @@ HEADER_InsertItemT (HEADER_INFO *infoPtr, INT nItem, const HDITEMW *phdi, BOOL b
static
LRESULT
HEADER_Layout
(
HEADER_INFO
*
infoPtr
,
LPHDLAYOUT
lpLayout
)
{
lpLayout
->
pwpos
->
hwnd
=
infoPtr
->
hwndSelf
;
lpLayout
->
pwpos
->
hwndInsertAfter
=
0
;
lpLayout
->
pwpos
->
x
=
lpLayout
->
prc
->
left
;
lpLayout
->
pwpos
->
y
=
lpLayout
->
prc
->
top
;
...
...
dlls/comctl32/listview.c
View file @
32bfaeb3
...
...
@@ -11184,7 +11184,7 @@ static void LISTVIEW_UpdateSize(LISTVIEW_INFO *infoPtr)
wp
.
cy
=
0
;
}
SetWindowPos
(
wp
.
hwnd
,
wp
.
hwndInsertAfter
,
wp
.
x
,
wp
.
y
,
wp
.
cx
,
wp
.
cy
,
wp
.
flags
);
SetWindowPos
(
infoPtr
->
hwndHeader
,
wp
.
hwndInsertAfter
,
wp
.
x
,
wp
.
y
,
wp
.
cx
,
wp
.
cy
,
wp
.
flags
);
TRACE
(
" after SWP wp=%d,%d (%dx%d)
\n
"
,
wp
.
x
,
wp
.
y
,
wp
.
cx
,
wp
.
cy
);
infoPtr
->
rcList
.
top
=
max
(
wp
.
cy
,
0
);
...
...
dlls/comctl32/tests/header.c
View file @
32bfaeb3
...
...
@@ -873,9 +873,12 @@ static void test_hdm_layout(HWND hParent)
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
add_header_to_parent_seq
,
"adder header control to parent"
,
FALSE
);
windowPos
.
hwnd
=
(
HWND
)
0xdeadbeef
;
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
retVal
=
SendMessageA
(
hChild
,
HDM_LAYOUT
,
0
,
(
LPARAM
)
&
hdLayout
);
expect
(
TRUE
,
retVal
);
ok
(
windowPos
.
hwnd
==
(
HWND
)
0xdeadbeef
,
"Unexpected value %p.
\n
"
,
windowPos
.
hwnd
);
ok
(
!
windowPos
.
hwndInsertAfter
,
"Unexpected value %p.
\n
"
,
windowPos
.
hwndInsertAfter
);
ok_sequence
(
sequences
,
HEADER_SEQ_INDEX
,
layout_seq
,
"layout sequence testing"
,
FALSE
);
...
...
@@ -1884,6 +1887,7 @@ START_TEST(header)
test_hdf_fixedwidth
(
parent_hwnd
);
test_hds_nosizing
(
parent_hwnd
);
test_item_auto_format
(
parent_hwnd
);
test_hdm_layout
(
parent_hwnd
);
unload_v6_module
(
ctx_cookie
,
hCtx
);
...
...
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