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
9576fb18
Commit
9576fb18
authored
Aug 04, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 04, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/listview: Introduce a way to update cached column rectangles from Header.
parent
6f723508
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
listview.c
dlls/comctl32/listview.c
+17
-0
No files found.
dlls/comctl32/listview.c
View file @
9576fb18
...
@@ -290,6 +290,7 @@ typedef struct tagLISTVIEW_INFO
...
@@ -290,6 +290,7 @@ typedef struct tagLISTVIEW_INFO
HDPA
hdpaPosX
;
/* maintains the (X, Y) coordinates of the */
HDPA
hdpaPosX
;
/* maintains the (X, Y) coordinates of the */
HDPA
hdpaPosY
;
/* items in LVS_ICON, and LVS_SMALLICON modes */
HDPA
hdpaPosY
;
/* items in LVS_ICON, and LVS_SMALLICON modes */
HDPA
hdpaColumns
;
/* array of COLUMN_INFO pointers */
HDPA
hdpaColumns
;
/* array of COLUMN_INFO pointers */
BOOL
colRectsDirty
;
/* trigger column rectangles requery from header */
POINT
currIconPos
;
/* this is the position next icon will be placed */
POINT
currIconPos
;
/* this is the position next icon will be placed */
PFNLVCOMPARE
pfnCompare
;
PFNLVCOMPARE
pfnCompare
;
LPARAM
lParamSort
;
LPARAM
lParamSort
;
...
@@ -1483,6 +1484,21 @@ static inline COLUMN_INFO * LISTVIEW_GetColumnInfo(const LISTVIEW_INFO *infoPtr,
...
@@ -1483,6 +1484,21 @@ static inline COLUMN_INFO * LISTVIEW_GetColumnInfo(const LISTVIEW_INFO *infoPtr,
if
(
nSubItem
==
0
&&
DPA_GetPtrCount
(
infoPtr
->
hdpaColumns
)
==
0
)
return
&
mainItem
;
if
(
nSubItem
==
0
&&
DPA_GetPtrCount
(
infoPtr
->
hdpaColumns
)
==
0
)
return
&
mainItem
;
assert
(
nSubItem
>=
0
&&
nSubItem
<
DPA_GetPtrCount
(
infoPtr
->
hdpaColumns
));
assert
(
nSubItem
>=
0
&&
nSubItem
<
DPA_GetPtrCount
(
infoPtr
->
hdpaColumns
));
/* update cached column rectangles */
if
(
infoPtr
->
colRectsDirty
)
{
COLUMN_INFO
*
info
;
LISTVIEW_INFO
*
Ptr
=
(
LISTVIEW_INFO
*
)
infoPtr
;
INT
i
;
for
(
i
=
0
;
i
<
DPA_GetPtrCount
(
infoPtr
->
hdpaColumns
);
i
++
)
{
info
=
DPA_GetPtr
(
infoPtr
->
hdpaColumns
,
i
);
SendMessageW
(
infoPtr
->
hwndHeader
,
HDM_GETITEMRECT
,
i
,
(
LPARAM
)
&
info
->
rcHeader
);
}
Ptr
->
colRectsDirty
=
FALSE
;
}
return
DPA_GetPtr
(
infoPtr
->
hdpaColumns
,
nSubItem
);
return
DPA_GetPtr
(
infoPtr
->
hdpaColumns
,
nSubItem
);
}
}
...
@@ -8643,6 +8659,7 @@ static LRESULT LISTVIEW_NCCreate(HWND hwnd, const CREATESTRUCTW *lpcs)
...
@@ -8643,6 +8659,7 @@ static LRESULT LISTVIEW_NCCreate(HWND hwnd, const CREATESTRUCTW *lpcs)
infoPtr
->
xTrackLine
=
-
1
;
/* no track line */
infoPtr
->
xTrackLine
=
-
1
;
/* no track line */
infoPtr
->
itemEdit
.
fEnabled
=
FALSE
;
infoPtr
->
itemEdit
.
fEnabled
=
FALSE
;
infoPtr
->
iVersion
=
COMCTL32_VERSION
;
infoPtr
->
iVersion
=
COMCTL32_VERSION
;
infoPtr
->
colRectsDirty
=
FALSE
;
/* get default font (icon title) */
/* get default font (icon title) */
SystemParametersInfoW
(
SPI_GETICONTITLELOGFONT
,
0
,
&
logFont
,
0
);
SystemParametersInfoW
(
SPI_GETICONTITLELOGFONT
,
0
,
&
logFont
,
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