开发者

API Call for arranging icons on desktop

开发者 https://www.devze.com 2023-01-07 18:34 出处:网络
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 wi

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消