开发者

retrieve multiple display information using win32/C++ [duplicate]

开发者 https://www.devze.com 2022-12-26 03:31 出处:网络
This question already has answers here: Num开发者_Python百科ber of physical monitors attached to a Windows machine?
This question already has answers here: Num开发者_Python百科ber of physical monitors attached to a Windows machine? (2 answers) Closed 9 years ago.

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.


EnumDisplayMonitors should get you started.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消