如何获取墙纸上的IconLocation的信息? [英] How can I get IconLocation's Information on wallpaper?

查看:79
本文介绍了如何获取墙纸上的IconLocation的信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要墙纸图标的位置信息.
我怎么知道?
例如)我保存了图标位置信息,并用它来切换图标位置.

I Need Wallpaper Icon''s Location Information.
How can I know it?
ex) I save Information of Icon Location, and I use it for switching the Icon Location.

推荐答案

如果我是对的,您正在尝试在图标上移动图标.桌面?

如果是这样,那么这不是一件容易的事-但这是可能的.桌面只是一个ListView,因此您可以向其发送LVI_SETITEMPOSITION API消息.但是(但很大)列表视图处于不同的过程和不同的地址空间中,因此您必须花很多时间来做到这一点.我没有尝试过,但是这个家伙 [ ^ ]具有.虽然不是在C#中,而是使用宏和自动化脚本,但是它们显示了原理.我不知道了!
祝你好运-我想您将需要它...:laugh:
If I am right, you are trying to move an icon on the desktop?

If so, then that''s not an easy task - but it is possible. The Desktop is just a ListView, so you can send it LVI_SETITEMPOSITION API messages. BUT (and it''s a big but) the listview is in a different process and a different address space, so you have to faff quite a bit to do it. I haven''t tried it, but this guy[^] has. Not in C# though, macros and automation scripts instead, but they show the principle. I know no more!
Good luck - I think you are going to need it... :laugh:


这篇关于如何获取墙纸上的IconLocation的信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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