windows 系统在哪里存储图标位置?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/294116/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Where does the system store the icons position?
提问by Stefan
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.
任何文件夹上的“图标视图”和“文件夹视图”实际上都是一个 SysListView。如果取消选中自动排列图标,您可以在图标周围移动,下次打开文件夹时,所有图标都在与上次相同的位置。
My question is, where does the system stores the x and y position of the icons?
我的问题是,系统在哪里存储图标的 x 和 y 位置?
回答by VonC
The settings for desktop icon placementin Windows XP (or Vista) are located in the the
Windows XP(或 Vista)中桌面图标放置的设置位于
HKCU\Software\Microsoft\Windows\Shell\Bags\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.
此注册表项包含许多值,最相关的是 ItemPos<screenresolution> 值、Sort 值和 FFlags 值。
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.)
sort 值控制图标的排序顺序(按名称、按类型、按大小等),FFlags 值控制图标的排列(对齐网格、自动对齐等)
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.
最后可能有任意数量的 ItemPos 值(附加不同的屏幕分辨率,例如 ItemPos800x600),它们控制用户定义的不同屏幕分辨率的图标位置。
For more details about the content of HKCU\Software\Microsoft\Windows\Shell
values:
有关HKCU\Software\Microsoft\Windows\Shell
值内容的更多详细信息:
Regarding the Icon viewused 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.
'x' 代表您的许多文件夹特定设置之一。