|
||||||||||
These pages are no longer updated and are only available for archive purposes.Click here to visit the pages with updated information. Determine the screen sizeWith the macro below you can return the screen size with the function GetSystemMetrics32. Declare Function GetSystemMetrics32 Lib "User32" _ Alias "GetSystemMetrics" (ByVal nIndex As Long) As Long Sub DisplayMonitorInfo() Dim w As Long, h As Long w = GetSystemMetrics32(0) ' width in points h = GetSystemMetrics32(1) ' height in points MsgBox Format(w, "#,##0") & " x " & Format(h, "#,##0"), _ vbInformation, "Monitor Size (width x height)" End Sub
Document last updated 1999-07-23 12:47:32
|
||||||||||
|