API Call for arranging icons on desktop
Are the开发者_如何学JAVAre any calls for arranging icon by name, size, etc or 'Align to grid'
?
I have never tried this, but if I had to I would first try sending LVM_ARRANGE message to the desktop window. And LVM_SORTITEMS/LVM_SORTITEMSEX might help with the sorting.
For the auto arrange you could try modify the style and using LVS_AUTOARRANGE style or the extended styles .
So you will need to use something like FindWindow to get the desktop windows and then use SetWindowLong with GWL_STYLE/GWL_EXSTYLE to modify the window style bits.
精彩评论