最大化另一个应用程序VB.NET的MDIChild

发布于 2024-08-03 09:50:32 字数 354 浏览 2 评论 0原文

我正在制作一个需要最大化另一个应用程序窗口的应用程序。在 Spy++ 中,它的工作方式是 -> “工作模型 - Untitled1” -> “MDILoient”-> “Untitled1”

这就是树视图的样子。

我需要最大化 Untitled1,但我不知道如何实现。我尝试了 findwindow“工作模型 - Untitled1”,然后使用 get 和 setwindowplacement 来实现它,它起作用了。然后我在“Untitled1”上使用findwindowex,但它没有最大化。我在这里做错了什么?我确信 mdi 窗口可以最大化; “Untitled1”窗口本身的标题栏上有 3 个按钮 (- + X)。

谢谢

I'm making an appication that needs to maximize the window of another application. In Spy++, the way it works is -> "Working Model - Untitled1" -> "MDICloient" -> "Untitled1"

This is what the tree view looks like.

I need to maximize Untitled1, but I'm not sure how. I tried findwindow "Working Model - Untitled1" and then used get and setwindowplacment for it, and it worked. Then I used findwindowex on "Untitled1" but it did not maximize. What am I doing wrong here? I'm sure mdi windows can be maximized; the "Untitled1" window itself has the 3 buttons (- + X) on the caption bar.

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

深海夜未眠 2024-08-10 09:50:32

我通过找到 mdiclient 的句柄,然后找到 afxframe 来解决这个问题...然后我使用 get 和 set 窗口位置。

I solved it by finding the handle of the mdiclient, then the afxframe... then I used get and set window position.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文