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
4de17c37
Commit
4de17c37
authored
Nov 05, 2003
by
Huw Davies
Committed by
Alexandre Julliard
Nov 05, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LISTVIEW_GetSubItemRect should succeed if subitem == 0 whatever mode
the listview is in.
parent
56121b71
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
listview.c
dlls/comctl32/listview.c
+4
-2
No files found.
dlls/comctl32/listview.c
View file @
4de17c37
...
@@ -5410,16 +5410,18 @@ static BOOL LISTVIEW_GetSubItemRect(LISTVIEW_INFO *infoPtr, INT nItem, LPRECT lp
...
@@ -5410,16 +5410,18 @@ static BOOL LISTVIEW_GetSubItemRect(LISTVIEW_INFO *infoPtr, INT nItem, LPRECT lp
POINT
Position
;
POINT
Position
;
LVITEMW
lvItem
;
LVITEMW
lvItem
;
if
(
!
lprc
||
(
infoPtr
->
dwStyle
&
LVS_TYPEMASK
)
!=
LVS_REPORT
)
return
FALSE
;
if
(
!
lprc
)
return
FALSE
;
TRACE
(
"(nItem=%d, nSubItem=%ld)
\n
"
,
nItem
,
lprc
->
top
);
TRACE
(
"(nItem=%d, nSubItem=%ld)
\n
"
,
nItem
,
lprc
->
top
);
/* On WinNT, a subitem of '0' calls LISTVIEW_GetItemRect */
/* On WinNT, a subitem of '0' calls LISTVIEW_GetItemRect */
if
(
lprc
->
top
==
0
)
if
(
lprc
->
top
==
0
)
return
LISTVIEW_GetItemRect
(
infoPtr
,
nItem
,
lprc
);
return
LISTVIEW_GetItemRect
(
infoPtr
,
nItem
,
lprc
);
if
((
infoPtr
->
dwStyle
&
LVS_TYPEMASK
)
!=
LVS_REPORT
)
return
FALSE
;
if
(
!
LISTVIEW_GetItemPosition
(
infoPtr
,
nItem
,
&
Position
))
return
FALSE
;
if
(
!
LISTVIEW_GetItemPosition
(
infoPtr
,
nItem
,
&
Position
))
return
FALSE
;
lvItem
.
mask
=
lprc
->
top
==
0
?
LVIF_INDENT
:
0
;
lvItem
.
mask
=
0
;
lvItem
.
iItem
=
nItem
;
lvItem
.
iItem
=
nItem
;
lvItem
.
iSubItem
=
lprc
->
top
;
lvItem
.
iSubItem
=
lprc
->
top
;
...
...
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