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
485fde81
Commit
485fde81
authored
Dec 09, 2011
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 09, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/listview: Create header when LVS_EX_FULLROWSELECT is requested.
parent
06f65740
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
listview.c
dlls/comctl32/listview.c
+5
-0
listview.c
dlls/comctl32/tests/listview.c
+14
-0
No files found.
dlls/comctl32/listview.c
View file @
485fde81
...
...
@@ -8450,6 +8450,11 @@ static DWORD LISTVIEW_SetExtendedListViewStyle(LISTVIEW_INFO *infoPtr, DWORD mas
LISTVIEW_UpdateSize
(
infoPtr
);
}
if
((
infoPtr
->
dwLvExStyle
^
old_ex_style
)
&
LVS_EX_FULLROWSELECT
)
{
LISTVIEW_CreateHeader
(
infoPtr
);
}
if
((
infoPtr
->
dwLvExStyle
^
old_ex_style
)
&
LVS_EX_TRANSPARENTBKGND
)
{
if
(
infoPtr
->
dwLvExStyle
&
LVS_EX_TRANSPARENTBKGND
)
...
...
dlls/comctl32/tests/listview.c
View file @
485fde81
...
...
@@ -1557,6 +1557,20 @@ static void test_create(void)
ok
(
hHeader
==
GetDlgItem
(
hList
,
0
),
"Expected header as dialog item
\n
"
);
DestroyWindow
(
hList
);
/* setting LVS_EX_FULLROWSELECT creates header */
hList
=
CreateWindow
(
"SysListView32"
,
"Test"
,
LVS_REPORT
,
0
,
0
,
100
,
100
,
NULL
,
NULL
,
GetModuleHandle
(
NULL
),
0
);
hHeader
=
(
HWND
)
SendMessage
(
hList
,
LVM_GETHEADER
,
0
,
0
);
ok
(
!
IsWindow
(
hHeader
),
"Header shouldn't be created
\n
"
);
ok
(
NULL
==
GetDlgItem
(
hList
,
0
),
"NULL dialog item expected
\n
"
);
SendMessage
(
hList
,
LVM_SETEXTENDEDLISTVIEWSTYLE
,
0
,
LVS_EX_FULLROWSELECT
);
hHeader
=
(
HWND
)
SendMessage
(
hList
,
LVM_GETHEADER
,
0
,
0
);
ok
(
IsWindow
(
hHeader
)
||
broken
(
!
IsWindow
(
hHeader
)),
/* 4.7x common controls */
"Header should be created
\n
"
);
ok
(
hHeader
==
GetDlgItem
(
hList
,
0
),
"Expected header as dialog item
\n
"
);
DestroyWindow
(
hList
);
/* not report style accepts LVS_EX_HEADERDRAGDROP too */
hList
=
create_listview_control
(
LVS_ICON
);
SendMessage
(
hList
,
LVM_SETEXTENDEDLISTVIEWSTYLE
,
0
,
LVS_EX_HEADERDRAGDROP
);
...
...
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