gpt4 book ai didi

winapi - HMONITOR 什么时候可以与多个物理显示器关联?

转载 作者:行者123 更新时间:2023-12-02 12:12:00 25 4
gpt4 key购买 nike

在一篇 MSDN 文章中,我读到了以下内容:

HMONITOR and the Device Context

Each physical display is represented by a monitor handle of type HMONITOR.

然而,另一篇文章似乎与这一说法相矛盾:

GetPhysicalMonitorsFromHMONITOR function

A single HMONITOR handle can be associated with more than one physical monitor.

所以我的问题是:在什么情况下 HMONITOR 会与多个物理显示器关联?

最佳答案

HMONITOR 可以与多个物理/虚拟监视器关联,如下所示:

multi-monitors share a same HMONITOR

当选择“复制这些显示”而不是“扩展这些显示”时,两个物理/虚拟显示器可以共享一个 HMONITOR,或者换句话说,它们完全重叠。在这种情况下,您可能会获得两个 IDDCX_MONITOR(物理或虚拟监视器),但只有一个 HMONITOR。

实际上,我正在寻找 IDDCX_MONITOR 和 HMONITOR 之间的映射方式:Map a IDDCX_MONITOR to a HMONITOR

关于winapi - HMONITOR 什么时候可以与多个物理显示器关联?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37580376/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com