0

I am trying to do my winform application dock and follow another application, like IE or word. My full plan is run the program underground and then this specific application is running, my winform will maximize and dock, will follow if moved, minimize if this application is minimized.

Can you guys show me some ideas about how to do it?

thanks

4

2 回答 2

1

您必须将消息发送到其他应用程序并对其进行分析。以下是MSDNMSDN Magazin上有关窗口系统挂钩的一些资源。因此,您将不得不使用良好的旧 P/Invoke,因为没有托管 API。

于 2009-09-08T18:03:23.343 回答
0

挂钩可以工作;但是,您提到的两个程序(IE 和 Word)都提供了允许您自定义用户界面的 API。我会先看看那里。顺便说一句,由于 IE 的受限环境,让标准钩子 API 工作会遇到很多麻烦。

于 2009-09-08T22:33:26.747 回答