大侠们帮忙看下程序谢谢了.!
Dim h, v, color As LongDim vcol As Integer, vrow As Integer, vitcolor As Integer
Private Sub Command1_Click()
setdispmode vrow, vcol, vbitcolor
End Sub
Private Sub Command2_Click()
setdispmode CInt(h), CInt(v), CInt(color)
End Sub
Private Sub Command3_Click()
Unload Me
End Sub
Private Sub Form_Load()
'保存最初的屏幕设置
h = getdevicecaps(Me.hdc, horzres)
v = getdevicecaps(Me.hdc, vhorzres)
color = getdevicecaps(Me.hdc, bitspixel)
End Sub
Private Sub Option1_Click()
If Option1 = True Then
vcol = 480
vrow = 640
vbitcolor = 16
Option2.Value = False
Option3.Value = False
Option4.Value = False
Option5.Value = False
End If
End Sub
Private Sub Option2_Click()
If Option2 = trie Then
vcol = 480
vrow = 640
vbitcolor = 32
Option1.Value = False
Option3.Value = False
Option4.Value = False
Option5.Value = False
End If
End Sub
Private Sub Option3_Click()
If Option3 = True Then
vcol = 600
vrow = 800
vbitcolor = 16
Option1.Value = False
Option2.Value = False
Option4.Value = False
Option5.Value = False
End If
End Sub
Private Sub Option4_Click()
If Option4 = True Then
vcol = 600
vrow = 800
vbitcolor = 32
Option1.Value = False
Option2.Value = False
Option3.Value = False
Option5.Value = False
End Sub
Private Sub Option5_Click()
If Option5 = True Then
vcol = 600
vrow = 800
vbitcolor = 16
Option1.Value = False
Option2.Value = False
Option3.Value = False
Option4.Value = False
End Sub
--------------------------------------------------------------------------------------------------