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
9cc12d28
Commit
9cc12d28
authored
Apr 21, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 21, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/listview: Header should be created when LVS_EX_HEADERDRAGDROP set.
parent
ac8257cb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
listview.c
dlls/comctl32/listview.c
+6
-1
listview.c
dlls/comctl32/tests/listview.c
+11
-0
No files found.
dlls/comctl32/listview.c
View file @
9cc12d28
...
...
@@ -7268,7 +7268,12 @@ static DWORD LISTVIEW_SetExtendedListViewStyle(LISTVIEW_INFO *infoPtr, DWORD dwM
if
((
infoPtr
->
dwLvExStyle
^
dwOldExStyle
)
&
LVS_EX_HEADERDRAGDROP
)
{
DWORD
dwStyle
=
GetWindowLongW
(
infoPtr
->
hwndHeader
,
GWL_STYLE
);
DWORD
dwStyle
;
/* if not already created */
LISTVIEW_CreateHeader
(
infoPtr
);
dwStyle
=
GetWindowLongW
(
infoPtr
->
hwndHeader
,
GWL_STYLE
);
if
(
infoPtr
->
dwLvExStyle
&
LVS_EX_HEADERDRAGDROP
)
dwStyle
|=
HDS_DRAGDROP
;
else
...
...
dlls/comctl32/tests/listview.c
View file @
9cc12d28
...
...
@@ -965,6 +965,17 @@ static void test_create(void)
/* HDS_DRAGDROP set by default */
ok
(
GetWindowLongPtr
(
hHeader
,
GWL_STYLE
)
&
HDS_DRAGDROP
,
"Expected header to have HDS_DRAGDROP
\n
"
);
DestroyWindow
(
hList
);
/* setting LVS_EX_HEADERDRAGDROP creates header */
hList
=
CreateWindow
(
"SysListView32"
,
"Test"
,
LVS_REPORT
,
0
,
0
,
100
,
100
,
NULL
,
NULL
,
GetModuleHandle
(
NULL
),
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_HEADERDRAGDROP
);
hHeader
=
(
HWND
)
SendMessage
(
hList
,
LVM_GETHEADER
,
0
,
0
);
ok
(
IsWindow
(
hHeader
),
"Header should be created
\n
"
);
ok
(
hHeader
==
GetDlgItem
(
hList
,
0
),
"Expected header as dialog item
\n
"
);
DestroyWindow
(
hList
);
}
static
void
test_redraw
(
void
)
...
...
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