1

Is it possible to arrange icons (just placing them at different locations on the desktop/in folders), and if so, could someone point me in the right direction?

I'm also interested in changing the properties for a folder programmatically, like "Documents", "Pictures", "Detailed list" and so on.

Thanks

pastapockets
  • 1,088
  • 2
  • 13
  • 20
  • Similar question asked previously: http://stackoverflow.com/questions/131690/how-can-i-programmatically-manipulate-windows-desktop-icon-locations – TLiebe Apr 16 '10 at 14:27
  • You can adapt [this C++ program](http://blogs.msdn.com/b/oldnewthing/archive/2004/07/20/188696.aspx) and call [`IFolderView::GetPosition`](http://msdn.microsoft.com/en-us/library/windows/desktop/bb775600%28v=vs.85%29.aspx) to get the position and [`IFolderView::SelectAndPositionItems`](http://msdn.microsoft.com/en-us/library/windows/desktop/bb775614%28v=VS.85%29.aspx) to move them. – Raymond Chen Nov 28 '11 at 23:38
  • @RaymondChen link is broken. Know of another place to retrieve? – JMIII Aug 20 '20 at 19:33
  • 1
    @JMIII You can find the link in web.archive.org. – Raymond Chen Aug 21 '20 at 14:29
  • @RaymondChen thanks your blog has been great! Greatly appreciate all the work you do! – JMIII Aug 21 '20 at 16:43
  • http://web.archive.org/web/20171025065411/https://blogs.msdn.microsoft.com/oldnewthing/20040720-00/?p=38393 – JMIII Aug 21 '20 at 16:45

0 Answers0