SYSINFO(number)
Description
SYSINFO returns information about the device. This is not a complete list of return values: see Microsoft’s documentation on GetSystemMetrics and GetDeviceCaps for more.
|
SM_CXSCREEN |
0 |
Width of screen |
|
SM_CYSCREEN |
1 |
Height of screen |
|
SM_CXVSCROLL |
2 |
Width of arrow bitmap on vertical scroll bar |
|
SM_CYHSCROLL |
3 |
Height of arrow bitmap on horizontal scroll bar |
|
SM_CYCAPTION |
4 |
Height of caption or title |
|
SM_CXDLGFRAME |
7 |
Width of dialog frame window |
|
SM_CYDLGFRAME |
8 |
Height of dialog frame window |
|
SM_CYMENU |
15 |
Height of menu |
|
SM_CXFULLSCREEN |
16 |
Width of window client area |
|
SM_CYFULLSCREEN |
17 |
Height of window client area |
|
SM_CYVSCROLL |
20 |
Height of arrow bitmap on horizontal scroll bar |
|
SM_CXVSCROLL |
21 |
Height of arrow bitmap on vertical scroll bar |
|
HORZREZ |
108 |
HiRes Display width pixels |
|
VERTREZ |
109 |
HiRes Display height pixels |
|
BITSPIXEL |
112 |
Bits per pixel |
|
NUMCOLORS |
124 |
Number of colors |
|
LOGPIXELSX |
188 |
Pixels per inch horizontal |
|
LOGPIXELSY |
190 |
Pixels per inch vertical |
Example
REM SYSINFO Example
MSGBOX "The device’s DPI is " & sysInfo(188)
Output
The device’s DPI is 96.
Related Items