说三道四技术文摘-感悟人生的经典句子
说三道四 > 文档快照

动态改变屏幕设置-VB资料

HTML文档下载 WORD文档下载 PDF文档下载
动态改变屏幕设置-VB资料


我们经常看到许多 Win95 的应用程序(尤其是游戏)在运行它的时候改变屏幕的设置,
运行完后恢复,在 VB 中,我们可以用以下方法实现:
'- 定义
Private Declare Function lstrcpy _
Lib "kernel32" Alias "lstrcpyA" _
(lpString1 As Any, lpString2 As Any) _
As Long
Const CCHDEVICENAME = 32
Const CCHFORMNAME = 32
Private Type DEVMODE
dmDeviceName As String * CCHDEVICENAME
dmSpecVersion As Integer
dmDriverVersion As Integer
dmSize As Integer
dmDriverExtra As Integer
dmFields As Long
dmOrientation As Integer
dmPaperSize As Integer
dmPaperLength As Integer
dmPaperWidth As Integer
dmScale As Integer
dmCopies As Integer
dmDefaultSource As Integer
dmPrintQuality As Integer
dmColor As Integer
dmDuplex As Integer
dmYResolution As Integer
dmTTOption As Integer
dmCollate As Integer
dmFormName As String * CCHFORMNAME
dmUnusedPadding As Integer
dmBitsPerPe
备案号:鲁ICP备13029499号-2 说三道四 www.s3d4.cn 说三道四技术文摘