开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜