Multi-Monitor Screen Size/DPI

Post Reply
User avatar
Jimmy
Posts: 165
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Multi-Monitor Screen Size/DPI

Post by Jimmy »

hi,

i have found in c:\fwh\source\function\getsysin.prg

---

Code: Select all

function ScreenWidth()
function ScreenHeight()
ScreenWidth() / ScreenHeight() use SM_CXFULLSCREEN / SM_CYFULLSCREEN
this work well when Scale is 100% but fail at 150% or is it "by Design" :?:

what i mean are those Function used for relative or absolute Size :?:
if these function is used for relative Size i like to request 2 new HB_FUNC using

Code: Select all

#define DESKTOPVERTRES 117 
#define DESKTOPHORZRES 118
---

Code: Select all

function ScreenHeightMM()
function ScreenWidthMM()
 
not tested yet. will it return mm for pixel :?:

---

Code: Select all

function ScreenSize( lInches )
on my 1600x1200 i got sometging with 500 ... hm
with .T. something with 24.xx ... hm

---

Code: Select all

function FW_GetMonitor()
this now what i want to know how FiveWin work

let say you have 2 x Monitor with Different Resolution _ might also be different.
if you put your App between both Monitor how will it look like when 1st is 100% and 2nd 150% :?:

i mean does a FiveWn App will react on those Situation or do i have to make App "DpiAware" :?:
greeting,
Jimmy
Post Reply