Get Display Resolutions ScottF Junior Member Posts: 45 Threads: 15 Joined: Jul 2017   12-23-2020, 02:49 PM Get Display Resolutions I have 3 monitors I need to get the resolutions for, 1 at a time. I think I should be using GetMonitors function with [ARRAY(RECT)&aRectangles], but I do not understand how to implement this. Could someone help? Many thanks in advance!! Reply Reply Kevin Longtime QM User Posts: 1,087 Threads: 58 Joined: Jul 2006 12-24-2020, 01:17 AM (This post was last modified: 12-24-2020, 01:20 AM by Kevin.) Code: ```ARRAY(int) h; ARRAY(RECT) r GetMonitors h r int i for i 0 h.len ,out h[i] ,out F"width ={r[i].right-r[i].left} height ={r[i].bottom-r[i].top}"``` Reply Reply ScottF Junior Member Posts: 45 Threads: 15 Joined: Jul 2017 12-24-2020, 11:47 AM (This post was last modified: 12-24-2020, 11:52 AM by ScottF. Edit Reason: Added: Question ) Ah ok, that is what I had a problem implementing, ARRAY(int) h; ARRAY(RECT) r GetMonitors h r I think I understand it now. Thanks Kevin. Can this be done specifying one of three monitors?  1, 2 or 3 to get res? Reply Reply Kevin Longtime QM User Posts: 1,087 Threads: 58 Joined: Jul 2006 12-24-2020, 01:06 PM couple more ways Code: ```RECT r MonitorFromIndex 1 0 r;;first argument is monitor number out "W=%i H=%i" r.right-r.left r.bottom-r.top```  Code: ```int wid hei GetWorkArea 0 0 wid hei 1 3;;last argument is monitor number out F"{wid} {hei}"``` Reply Reply ScottF Junior Member Posts: 45 Threads: 15 Joined: Jul 2017 12-24-2020, 01:10 PM Very cool! Thanx. Reply Reply « Next Oldest | Next Newest »