Private Declare Function SystemParametersInfo Lib "user32" Alias _ "SystemParametersInfoA" (ByVal uAction As Long, ByVal uParam As Long, _ ByRef lpvParam As Any, ByVal fuWinIni As Long) As Long
Const SPIF_SENDWININICHANGE = &H2 Const SPIF_UPDATEINIFILE = &H1 Const SPI_SETDOUBLECLICKTIME = 32 Const SPI_SETDOUBLECLKHEIGHT = 30 Const SPI_SETDOUBLECLKWIDTH = 29
Sub SetDoubleClickInfo(ByVal Width As Long, ByVal Height As Long, _ ByVal Timeout As Long, Optional ByVal MakePermanent As Boolean) Dim flags As Long If MakePermanent Then flags = SPIF_SENDWININICHANGE Or SPIF_UPDATEINIFILE End If SystemParametersInfo SPI_SETDOUBLECLKWIDTH, Width, ByVal 0&, flags SystemParametersInfo SPI_SETDOUBLECLKHEIGHT, Height, ByVal 0&, flags SystemParametersInfo SPI_SETDOUBLECLICKTIME, Timeout, ByVal 0&, flags End Sub |