Private Sub Form_Load()
Dim rc, temp
Me.Label1(0).Caption = GetDeviceCaps(Me.hdc, HORZSIZE)
Me.Label1(1).Caption = GetDeviceCaps(Me.hdc, VERTSIZE)
Me.Label1(2).Caption = GetDeviceCaps(Me.hdc, HORZRES)
Me.Label1(3).Caption = GetDeviceCaps(Me.hdc, VERTRES)
Me.Label1(4).Caption = GetDeviceCaps(Me.hdc, BITSPIXEL)
Me.Label1(5).Caption = GetDeviceCaps(Me.hdc, COLORRES)
Me.Label1(6).Caption = GetSystemMetrics(SM_CMONITORS)
Me.Label1(7).Caption = GetSystemMetrics(SM_CXFULLSCREEN)
Me.Label1(8).Caption = GetSystemMetrics(SM_CYFULLSCREEN)
Me.Label1(9).Caption = GetSystemMetrics(SM_CXMINIMIZED)
Me.Label1(10).Caption = GetSystemMetrics(SM_CYMINIMIZED)
rc = GetSystemMetrics(SM_MIDEASTEANBLED)
If rc = 0 Then
temp = "サポートしてない"
Else
temp = "サポートしてる"
End If
Me.Label1(11).Caption = temp
End Sub |