Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

What does "auto arrange" mean with a list control?

329 views
Skip to first unread message

chris.shea...@gmail.com

unread,
Mar 31, 2009, 4:21:47 PM3/31/09
to
CListCtrl has a style LVS_AUTOARRANGE which the documentation cleverly
describes as "Icons are automatically kept arranged in icon and small
icon view."

But I can't find anything that tells me how the list control is going
to arrange my icons, or even what "arrange" means. It keeps them in
columns/rows? Does that anyway. Sorting maybe?

Thanks,
Chris

AliR. (VC++ MVP)

unread,
Mar 31, 2009, 9:46:06 PM3/31/09
to
It simply means that in Icon view it will keep the icons together, toward
the upper left corner of the control.

Try this bring up my computer, go to your c drive, put it in icon view, move
an icon on that same screen, and see what happens, if you have auto arrange
on then it will snap to the nearst place in the grid, if you don't then it
will stay where you dropped it. Now in the view menu of my computer toggle
the Arrange Icons menu item, and do drag and drop the icon again.

AliR.


<chris.shea...@gmail.com> wrote in message
news:0502faf2-bf94-4928...@d2g2000pra.googlegroups.com...

Scot T Brennecke

unread,
Apr 1, 2009, 11:17:22 PM4/1/09
to
When in one of the icon views, it will keep them in nice, neat columns and
rows. In theory anyway, it would not automatically snap the icons into a
the "grid" if you were to drag it to a place outside the "grid". Also, it
will fill empty spaces so they are all contiguous. This is the behavior you
see in Windows Explorer (including the desktop) when the "Auto Arrange"
option is chosen there.

<chris.shea...@gmail.com> wrote in message
news:0502faf2-bf94-4928...@d2g2000pra.googlegroups.com...

0 new messages