使用 win32/C++ 检索多个显示信息

发布于 2024-08-28 13:42:51 字数 70 浏览 4 评论 0原文

有没有什么方法可以检索除了主显示器之外还有多少额外显示器、它们如何编号、尺寸是多少等信息?我知道这在 .net 领域非常容易。

Is there any way to retrieve information about how many extra displays there are besides the main one, how they are numbered, what the dimensions are, etc? I know this is pretty easy in .net land.

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

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

发布评论

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

评论(2

红墙和绿瓦 2024-09-04 13:42:51

EnumDisplayMonitors 应该可以帮助您入门。

EnumDisplayMonitors should get you started.

宛菡 2024-09-04 13:42:51

使用 EnumDisplayMonitors() 函数,为前 2 个参数传递 NULL。您的 回调 按数字顺序获取监视器他们的虚拟位置,相对于主监视器。负位置位于主显示器的左侧和顶部。

Use the EnumDisplayMonitors() function, passing NULL for the first 2 arguments. Your callback gets the monitors in numeric order with their virtual location, relative from the main monitor. Negative positions are to the left and top of your main monitor.

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