The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: Mr Earl on January 26, 2006, 11:35:56 AM

Title: Moving List View Columns
Post by: Mr Earl on January 26, 2006, 11:35:56 AM
If I drag a list view column header to a different position, what do I save so that
the next time I open that list view it uses the new position?
Title: Re: Moving List View Columns
Post by: Jimg on January 26, 2006, 02:35:01 PM
You just need to save the column order in an ini or the registry or somewhere, and next time it is run, do a LVM_SETCOLUMNORDERARRAY with the saved values.
Title: Re: Moving List View Columns
Post by: Mr Earl on January 26, 2006, 04:00:49 PM
Thanks Jim.  I wasn't expecting it to be that easy.  That message isn't in my help file.
Title: Re: Moving List View Columns
Post by: QvasiModo on January 26, 2006, 09:35:11 PM
Hi :)

Quote from: Mr Earl on January 26, 2006, 04:00:49 PM
That message isn't in my help file.

You can use the online help:
http://msdn.microsoft.com/library/en-us/shellcc/platform/commctls/listview/messages/lvm_setcolumnorderarray.asp