cs_kalif
Messages postés362Date d'inscriptionmardi 18 décembre 2001StatutMembreDernière intervention24 août 2012
-
24 janv. 2008 à 09:56
Renfield
Messages postés17287Date d'inscriptionmercredi 2 janvier 2002StatutModérateurDernière intervention27 septembre 2021
-
24 janv. 2008 à 12:19
slt, je voudrai savoir si vous connaissez le moyen d'augmenter la taille des deux petits boutons qui permettent de descandre et monter dans une listbox ....
en fait j'utilise un écran tactile et pour cliquer sur les bouttons je perds trop de temps du fait qu'il sont trop petits...
Renfield
Messages postés17287Date d'inscriptionmercredi 2 janvier 2002StatutModérateurDernière intervention27 septembre 202174 24 janv. 2008 à 12:19
pour info:
Private Declare Function SystemParametersInfo Lib "user32.dll" Alias "SystemParametersInfoA" (ByVal uAction As Long, ByVal uParam As Long, ByRef lpvParam As Any, ByVal fuWinIni As Long) As Long
Private Const SPI_GETNONCLIENTMETRICS As Long = 41
Private Const SPI_SETNONCLIENTMETRICS As Long = 42
Private Const SPIF_SENDWININICHANGE As Long = &H2
Private Type LOGFONT
lfHeight As Long
lfWidth As Long
lfEscapement As Long
lfOrientation As Long
lfWeight As Long
lfItalic As Byte
lfUnderline As Byte
lfStrikeOut As Byte
lfCharSet As Byte
lfOutPrecision As Byte
lfClipPrecision As Byte
lfQuality As Byte
lfPitchAndFamily As Byte
lfFaceName(1 To 32) As Byte
End Type
Private Type NONCLIENTMETRICS
cbSize As Long
iBorderWidth As Long
iScrollWidth As Long
iScrollHeight As Long
iCaptionWidth As Long
iCaptionHeight As Long
lfCaptionFont As LOGFONT
iSMCaptionWidth As Long
iSMCaptionHeight As Long
lfSMCaptionFont As LOGFONT
iMenuWidth As Long
iMenuHeight As Long
lfMenuFont As LOGFONT
lfStatusFont As LOGFONT
lfMessageFont As LOGFONT
End Type
Private Sub Form_Load()
Dim tSettings As NONCLIENTMETRICS
tSettings.cbSize = Len(tSettings)
SystemParametersInfo SPI_GETNONCLIENTMETRICS, 0, tSettings, 0
tSettings.iScrollWidth = 60
tSettings.iScrollHeight = 60
SystemParametersInfo SPI_SETNONCLIENTMETRICS, 0, tSettings, 3
End Sub