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
bf46fab6
Commit
bf46fab6
authored
Oct 23, 2002
by
Dimitrie O. Paun
Committed by
Alexandre Julliard
Oct 23, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delay some size computations until after first paint.
parent
7d9b04db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
listview.c
dlls/comctl32/listview.c
+14
-4
No files found.
dlls/comctl32/listview.c
View file @
bf46fab6
...
...
@@ -54,6 +54,7 @@
*
* Speedups
* -- LISTVIEW_SetItemCount is too invalidation happy
* -- LISTVIEW_Size invalidates too much
* -- in sorted mode, LISTVIEW_InsertItemT sorts the array,
* instead of inserting in the right spot
* -- we should keep an ordered array of coordinates in iconic mode
...
...
@@ -252,6 +253,7 @@ typedef struct tagLISTVIEW_INFO
BOOL
bFocus
;
INT
nFocusedItem
;
RECT
rcFocus
;
BOOL
bFirstPaint
;
/* Flags if the control has never painted before */
DWORD
dwStyle
;
/* the cached window GWL_STYLE */
DWORD
dwLvExStyle
;
/* extended listview style */
INT
nItemCount
;
/* the number of items in the list */
...
...
@@ -6898,6 +6900,7 @@ static LRESULT LISTVIEW_Create(HWND hwnd, LPCREATESTRUCTW lpcs)
infoPtr
->
iconSpacing
.
cx
=
GetSystemMetrics
(
SM_CXICONSPACING
);
infoPtr
->
iconSpacing
.
cy
=
GetSystemMetrics
(
SM_CYICONSPACING
);
infoPtr
->
nEditLabelItem
=
-
1
;
infoPtr
->
bFirstPaint
=
TRUE
;
/* get default font (icon title) */
SystemParametersInfoW
(
SPI_GETICONTITLELOGFONT
,
0
,
&
logFont
,
0
);
...
...
@@ -6958,9 +6961,6 @@ static LRESULT LISTVIEW_Create(HWND hwnd, LPCREATESTRUCTW lpcs)
infoPtr
->
hdpaPosX
=
DPA_Create
(
10
);
infoPtr
->
hdpaPosY
=
DPA_Create
(
10
);
/* initialize size of items */
LISTVIEW_UpdateItemSize
(
infoPtr
);
/* initialize the hover time to -1(indicating the default system hover time) */
infoPtr
->
dwHoverTime
=
-
1
;
...
...
@@ -7707,6 +7707,16 @@ static LRESULT LISTVIEW_Paint(LISTVIEW_INFO *infoPtr, HDC hdc)
{
TRACE
(
"(hdc=%p)
\n
"
,
hdc
);
if
(
infoPtr
->
bFirstPaint
)
{
UINT
uView
=
infoPtr
->
dwStyle
&
LVS_TYPEMASK
;
LISTVIEW_UpdateItemSize
(
infoPtr
);
if
(
uView
==
LVS_ICON
||
uView
==
LVS_SMALLICON
)
LISTVIEW_Arrange
(
infoPtr
,
LVA_DEFAULT
);
LISTVIEW_UpdateScroll
(
infoPtr
);
infoPtr
->
bFirstPaint
=
FALSE
;
}
if
(
hdc
)
LISTVIEW_Refresh
(
infoPtr
,
hdc
);
else
...
...
@@ -7984,7 +7994,7 @@ static LRESULT LISTVIEW_Size(LISTVIEW_INFO *infoPtr, int Width, int Height)
LISTVIEW_UpdateScroll
(
infoPtr
);
LISTVIEW_InvalidateList
(
infoPtr
);
LISTVIEW_InvalidateList
(
infoPtr
);
/* FIXME: optimize */
return
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