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
aaec0334
Commit
aaec0334
authored
Oct 22, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 22, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/listview: Don't query header if it isn't created.
parent
9f548bd9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
13 deletions
+17
-13
listview.c
dlls/comctl32/listview.c
+17
-13
No files found.
dlls/comctl32/listview.c
View file @
aaec0334
...
...
@@ -10326,19 +10326,23 @@ static void LISTVIEW_UpdateSize(LISTVIEW_INFO *infoPtr)
}
else
if
(
infoPtr
->
uView
==
LV_VIEW_DETAILS
)
{
HDLAYOUT
hl
;
WINDOWPOS
wp
;
hl
.
prc
=
&
infoPtr
->
rcList
;
hl
.
pwpos
=
&
wp
;
SendMessageW
(
infoPtr
->
hwndHeader
,
HDM_LAYOUT
,
0
,
(
LPARAM
)
&
hl
);
TRACE
(
" wp.flags=0x%08x, wp=%d,%d (%dx%d)
\n
"
,
wp
.
flags
,
wp
.
x
,
wp
.
y
,
wp
.
cx
,
wp
.
cy
);
SetWindowPos
(
wp
.
hwnd
,
wp
.
hwndInsertAfter
,
wp
.
x
,
wp
.
y
,
wp
.
cx
,
wp
.
cy
,
wp
.
flags
|
((
infoPtr
->
dwStyle
&
LVS_NOCOLUMNHEADER
)
?
SWP_HIDEWINDOW
:
SWP_SHOWWINDOW
));
TRACE
(
" after SWP wp=%d,%d (%dx%d)
\n
"
,
wp
.
x
,
wp
.
y
,
wp
.
cx
,
wp
.
cy
);
infoPtr
->
rcList
.
top
=
max
(
wp
.
cy
,
0
);
/* if control created invisible header isn't created */
if
(
infoPtr
->
hwndHeader
)
{
HDLAYOUT
hl
;
WINDOWPOS
wp
;
hl
.
prc
=
&
infoPtr
->
rcList
;
hl
.
pwpos
=
&
wp
;
SendMessageW
(
infoPtr
->
hwndHeader
,
HDM_LAYOUT
,
0
,
(
LPARAM
)
&
hl
);
TRACE
(
" wp.flags=0x%08x, wp=%d,%d (%dx%d)
\n
"
,
wp
.
flags
,
wp
.
x
,
wp
.
y
,
wp
.
cx
,
wp
.
cy
);
SetWindowPos
(
wp
.
hwnd
,
wp
.
hwndInsertAfter
,
wp
.
x
,
wp
.
y
,
wp
.
cx
,
wp
.
cy
,
wp
.
flags
|
((
infoPtr
->
dwStyle
&
LVS_NOCOLUMNHEADER
)
?
SWP_HIDEWINDOW
:
SWP_SHOWWINDOW
));
TRACE
(
" after SWP wp=%d,%d (%dx%d)
\n
"
,
wp
.
x
,
wp
.
y
,
wp
.
cx
,
wp
.
cy
);
infoPtr
->
rcList
.
top
=
max
(
wp
.
cy
,
0
);
}
infoPtr
->
rcList
.
top
+=
(
infoPtr
->
dwLvExStyle
&
LVS_EX_GRIDLINES
)
?
2
:
0
;
}
...
...
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