通过 C++ 控制应用程序监视器

发布于 2024-07-13 19:20:07 字数 180 浏览 6 评论 0原文

我有一个应用程序,可以在一天中以特定的时间间隔打开 IE 浏览器窗口。 我想控制浏览器窗口打开的监视器(例如 browser1 在监视器 1 上打开,浏览器 2 在监视器 2 上打开,浏览器 3 在监视器 1 上打开,浏览器 4 在监视器 2 上打开)。 有没有办法使用 C++(应用程序是用 C++ 编写的)来控制我打开浏览器窗口的监视器?

I have an application that opens up IE browser windows at certain intervals throughout the day. I would like to control the monitor that the browser window opens up to (for example browser1 opens on monitor1 and browser2 on monitor2 and browser3 on monitor1 and browser4 on monitor2). Is there a way using C++ (app is written in C++) to control the monitor that I open the browser window on?

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

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

发布评论

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

评论(1

高速公鹿 2024-07-20 19:20:07

有各种第三方实用程序允许用户对此进行控制,但以编程方式,您必须使用 GetMonitorInfo / MoveWindow 之类的工具在启动 IE 后定位 IE。

另一种方法是将 IE 控件嵌入到您选择的对话框或窗口中,然后您就可以完全控制它。

There are various third-party utilities that will allow a user to control this, but programatically you would have to use something like GetMonitorInfo / MoveWindow to position IE after launching it.

An alternative would be to embed an IE control in a dialog or window of your choosing which you would then have complete control over.

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