delphi - 如何唯一标识一台显示器?

标签 delphi screen multiple-monitors

我正在开发一个项目,在该项目中,我对各个监视器 (TMonitor) 进行屏幕截图并通过网络传输图像(远程桌面查看)。假设添加/删除了一个监视器(我已经可以识别这一点),我需要同步发生这种情况的监视器。因为,假设有 3 个监视器,索引为 0、1、2。监视器 1 被删除。我不想自动将索引2更改为1,我希望它始终维护一个ID。 TMonitor 类 (Screen.Monitors[i]) 中是否有我可以识别的属性来唯一标识它?

最佳答案

我想说,TMonitorHandle 属性在任何时候都是唯一的。

根据documentation :

A physical display has the same HMONITOR as long as it is part of the desktop.

关于delphi - 如何唯一标识一台显示器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11074830/

相关文章:

macos - 有没有办法在多个显示器上使用 PyCharm

delphi - 为什么 TDateTimePicker 不允许我导航到二月?

android - 如何让ListView的行满屏?

ios - 使 iOS 应用程序与 iPhone 6 和 iPhone 6 尺寸兼容

html - 如果它与另一个元素 (span) 共享 div,如何将 h1 的文本水平居中放置在屏幕中间

windows - "Extend my Windows desktop onto this monitor"以编程方式

unity3d - 在多个监视器中打开多个 Unity 应用程序

Delphi 甲骨文 Blob

delphi - Sonarqube Delphi 插件

delphi - Delphi调试中移动程序计数器