title image


Smiley Re: Bildschirmauflösung ändern - wie ?
Probier´s mal so:Declare Function GetSystemMetrics Lib "user32" (ByVal nIndex As Long) As LongDeclare Function EnumDisplaySettings Lib "user32" Alias "EnumDisplaySettingsA" (ByVal lpszDeviceName As Long, ByVal iModeNum As Long, lpDevMode As Any) As BooleanDeclare Function ChangeDisplaySettings Lib "user32" Alias "ChangeDisplaySettingsA" (lpDevMode As Any, ByVal dwFlags As Long) As LongPublic Horizontal As LongPublic Vertikal As LongDim DevM As DEVMODEDim Ergebnis As LongPublic BildschirmabmessungenZurücksetzen As BooleanConst CCDEVICENAME = 32Const CCFORMNAME = 32Const DM_PELSWIDTH = &H80000Const DM_PELSHEIGHT = &H100000Const CDS_UPDATEREGISTRY = &H1Const CDS_TEST = &H4Const DISP_CHANGE_SUCCESSFUL = 0Type DEVMODE dmDeviceName As String * CCDEVICENAME 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 * CCFORMNAME dmUnusedPadding As Integer dmBitsPerPel As Integer dmPelsWidth As Long dmPelsHeight As Long dmDisplayFlags As Long dmDisplayFrequency As LongEnd TypeSub BildschirmauflösungSetzen() EnumDisplaySettings 0&, 0&, DevM With DevM .dmFields = DM_PELSWIDTH Or DM_PELSHEIGHT .dmPelsWidth = 640 .dmPelsHeight = 480 End With Ergebnis = ChangeDisplaySettings(DevM, CDS_TEST) If (Ergebnis And DISP_CHANGE_SUCCESSFUL) 0 Then ' Erfolgreich - Änderung in der Registry ablegen ChangeDisplaySettings DevM, 0& 'CDS_UPDATEREGISTRY End IfEnd SubGruß Michael

geschrieben von

Login

E-Mail:
  

Passwort:
  

Beitrag anfügen

Symbol:
 
 
 
 
 
 
 
 
 
 
 
 
 

Überschrift: