Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where does the system store the icons position?

Tags:

.net

windows

The "icon view" and "folder view" on any folder is in fact a SysListView. If you uncheck Auto-arrange of the icons you can move around the icons and next time you open the folder all icons are at the same place as last time.

My question is, where does the system stores the x and y position of the icons?

like image 687
Stefan Avatar asked Nov 16 '08 17:11

Stefan


1 Answers

The settings for desktop icon placement in Windows XP (or Vista) are located in the the

HKCU\Software\Microsoft\Windows\Shell\Bags\1\Desktop 

registry key.

This registry key contains a number of values, the most relevant if which are the ItemPos<screenresolution> values, the Sort value and the FFlags value.

The sort value controls the sort order of the icons (by name, by type, by size etc.), the FFlags value controls the arrangement of the icons (align to grid, auto align etc.)

Finally there may be any number of ItemPos values (appended with different screen resolutions eg. ItemPos800x600), which control the user defined positions of the icons for different screen resolutions.

For more details about the content of HKCU\Software\Microsoft\Windows\Shell values:

ShellBagsView v1.05

ShellBagsView

Regarding the Icon view used for any folder of one's choosing, I believe the position of icons would be stored in:

HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\[x]\Shell\{yyyyyyy-yy...}\ItemPos

with 'x' representing one of your many folder specific settings.

like image 174
VonC Avatar answered Oct 27 '22 03:10

VonC