Aleksej » 29.07.2003 (Вт) 8:23
Вот пример:
'*******************************************************
' Функция устанавливает разрешение монитора
' Depth - 4 бит - 16 цветов, 8 бит - 256,16 бит - 65536
'*******************************************************
Public Function SetVideoMode(Width As Long, Height As Long, _
Depth As Long)
Dim dm As DEVMODE
dm.dmPelsWidth = Width
dm.dmPelsHeight = Height
dm.dmBitsPerPel = Depth
dm.dmFields = DM_PELSWIDTH + DM_PELSHEIGHT + _
DM_BITSPERPEL
dm.dmSize = dm.dmPelsHeight
ChangeDisplaySettings dm, 0
End Function