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
3520c832
Commit
3520c832
authored
Oct 25, 2002
by
Dimitrie O. Paun
Committed by
Alexandre Julliard
Oct 25, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Keep autoarranging items until one is moved.
parent
01e82f2b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
listview.c
dlls/comctl32/listview.c
+7
-2
No files found.
dlls/comctl32/listview.c
View file @
3520c832
...
...
@@ -251,6 +251,7 @@ typedef struct tagLISTVIEW_INFO
INT
ntmHeight
;
/* From GetTextMetrics from above font */
BOOL
bRedraw
;
/* Turns on/off repaints & invalidations */
BOOL
bFirstPaint
;
/* Flags if the control has never painted before */
BOOL
bAutoarrange
;
/* Autoarrange flag when NOT in LVS_AUTOARRANGE */
BOOL
bFocus
;
INT
nFocusedItem
;
RECT
rcFocus
;
...
...
@@ -1173,7 +1174,8 @@ static inline BOOL is_autoarrange(LISTVIEW_INFO *infoPtr)
{
UINT
uView
=
infoPtr
->
dwStyle
&
LVS_TYPEMASK
;
return
(
infoPtr
->
dwStyle
&
LVS_AUTOARRANGE
)
&&
(
uView
==
LVS_ICON
||
uView
==
LVS_SMALLICON
);
return
((
infoPtr
->
dwStyle
&
LVS_AUTOARRANGE
)
||
infoPtr
->
bAutoarrange
)
&&
(
uView
==
LVS_ICON
||
uView
==
LVS_SMALLICON
);
}
/******** Internal API functions ************************************/
...
...
@@ -2056,7 +2058,8 @@ static BOOL LISTVIEW_Arrange(LISTVIEW_INFO *infoPtr, INT nAlignCode)
case
LVA_SNAPTOGRID
:
next_pos
=
LISTVIEW_NextIconPosTop
;
break
;
/* FIXME */
default:
return
FALSE
;
}
infoPtr
->
bAutoarrange
=
TRUE
;
infoPtr
->
currIconPos
.
x
=
infoPtr
->
currIconPos
.
y
=
0
;
for
(
i
=
0
;
i
<
infoPtr
->
nItemCount
;
i
++
)
{
...
...
@@ -6562,6 +6565,8 @@ static BOOL LISTVIEW_SetItemPosition(LISTVIEW_INFO *infoPtr, INT nItem, POINT pt
pt
.
x
-=
Origin
.
x
;
pt
.
y
-=
Origin
.
y
;
infoPtr
->
bAutoarrange
=
FALSE
;
return
LISTVIEW_MoveIconTo
(
infoPtr
,
nItem
,
&
pt
,
FALSE
);
}
...
...
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