将窗口粘贴到其他窗口
我想开发一个可以粘到其他的Windows程序 窗户。
我正在寻找最快的方法来做到这一点。我可以通过 WinAPI
获取所有内容 有关目标窗口的信息并将我的窗口移动到合适的位置 然后嗅探目标窗口的Windows消息来搜索调整大小或移动窗口,然后移动我的窗口再次。但我不知道什么是最简单的良好工作方式(也许在 .NET
上?但我不喜欢 .NET
中的答案,我喜欢免费框架)。
我想粘在目标窗口的顶部、底部、左侧、右侧,但这也许没关系。
谁能帮我解决这个问题吗? 谢谢。
I want to develop Windows program who can stick into other
window.
I searching fastest-way to do this. I can get by WinAPI
all
information about target window and move my window into good location
and after it Sniffing Windows Messages of target window to searching resize or move window and after this doing move my window again. But i don't know what is a simplest good working way (maybe somewhat on .NET
? But i don't preffer answers in .NET
i like free framework's).
I want to stick on the top, bottom, left, right of the target window, but this maybe never mind.
Can anyone help me something with this problem?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我使用DLLInjection进入目标Windows进程,使用winapi调用创建了一些钩子,并通过
XML
通过Message Pipe
将此值传输到其他应用程序坚持这个窗户。I used DLLInjection to get into target windows process, created some hooks using winapi calls and by
XML
overMessage Pipe
transporting this values to other application who stick to this windows.您基本上需要做两件事:
您可以在 Win32 API 或 .Net 中执行这两项操作。你只需要一个好的标准#1。例如,桌面边界内的所有顶级可见窗口。
可能希望将桌面本身包含在上面的列表中,以便您的应用程序也粘在桌面的边缘。
You basically need to do two things:
You can do both in Win32 API or with .Net. You just need a good criterion for #1. Like, for example, all top level visible windows that are within the desktop's boundaries.
Might want to include the desktop itself in the list above, so that your app sticks to the edges of the desktop as well.