Buon giorno e buon anno a tutti
Vorrei sapere se è possibile sapere se all' avvio di un programma si può determinare il tipo di risoluzione dello schermo (completa) è in uso in quel momento.
Per capirci es. 1024x768x32
io col codice sottostante riesco a vedere tutti i possibili modi.
Listscreen.AddItem (CStr(dm.dmPelsWidth) + "x" + CStr(dm.dmPelsHeight) + "x" + CStr(dm.dmBitsPerPel))
non riesco però a determinare quale CStr(dm.dmBitsPerPel)) ho .
Dim HRes As Integer, VRes As Integer
HRes = Screen.Width / Screen.TwipsPerPixelY
VRes = Screen.Height / Screen.TwipsPerPixelX
Listscreen.AddItem HRes & "x" & VRes ??????
qualcuno sa come fare, su internet ho trovato veramente poco.
Grazie
|