如何设置和获取桌面图标位置? [英] How can I set and get Desktop Icons location?

查看:508
本文介绍了如何设置和获取桌面图标位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看过一个程序,该程序可以精美地重新放置所有桌面图标,当您将鼠标指针悬停在它们上时,还可以使图标弹跳.

当然,有一种API方法可以做到这一点,但是我是.Net程序员,所以我对Win32 API函数的了解很少.

有没有经验丰富的开发人员可以向我展示如何做到这一点? ;)
甚至简短的提示也将是有价值的:thumbsup:

非常感谢:)

I''ve seen a program which can relocate all of your desktop icons in a beautiful way and also can make icons bounce when you hover the mouse pointer on them.

Surely there is an API way to do so, but I''m a .Net programmer and my knowledge about Win32 API functions is little.

Is there any seasoned Developer who can show me how to do so? ;)
Even a short hint will be valuable :thumbsup:

Thanks a lot :)

推荐答案

感谢Rechard,但没有一个回答我的问题;)
Thanks Rechard, but non of them answers my problem ;)


还有别的地方我知道要看的是此处 [
Well the only other place I know to look is here[^] on MSDN.


再次感谢Rechard :)
Windows桌面似乎只是一个ListView,并且有2个API函数可以获取和设置桌面上的图标位置:
LVM_GETITEMPOSITION
LVM_SETITEMPOSITION

这是一个解决方案,但作者说它不起作用!:
获取桌面图标位置 [如何获取桌面的图标"的信息? [
Thanks again Rechard :)
It seems that Windows desktop is just a ListView and there are 2 API functions that can get and set icon positions on desktop:
LVM_GETITEMPOSITION
LVM_SETITEMPOSITION

here is a solution, but the writer says it doesn''t work!:
Retrieving Desktop Icon Positions[^]

and here is a page from Windows Developers Center:
How can i get desktop''s icon''s information ?[^]


这篇关于如何设置和获取桌面图标位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆