cs_jpp44
Messages postés3Date d'inscriptiondimanche 27 avril 2003StatutMembreDernière intervention16 mai 2005
-
16 mai 2005 à 17:38
Gobillot
Messages postés3140Date d'inscriptionvendredi 14 mai 2004StatutMembreDernière intervention11 mars 2019
-
19 mai 2005 à 18:26
J'aimerai bouger le scroll bar d'une listview par le code
Gobillot
Messages postés3140Date d'inscriptionvendredi 14 mai 2004StatutMembreDernière intervention11 mars 201934 16 mai 2005 à 23:57
Private Const WM_HSCROLL = &H114
Private Const WM_VSCROLL = &H115
Private Const SB_LINEUP = 0
Private Const SB_LINEDOWN = 1
Private Const SB_PAGEUP = 2
Private Const SB_PAGEDOWN = 3
Private Const SB_THUMBPOSITION = 4
Private Const SB_THUMBTRACK = 5
Private Const SB_TOP = 6
Private Const SB_BOTTOM = 7
Private Const SB_ENDSCROLL = 8
Private Const SB_LINELEFT = 0
Private Const SB_LINERIGHT = 1
Private Const SB_PAGELEFT = 2
Private Const SB_PAGERIGHT = 3
Private Const SB_LEFT = 6
Private Const SB_RIGHT = 7
Private Const SB_CTL = 2
Private Const SB_BOTH = 3
Private Enum HORZ_VERT
SB_HORZ = 0&
SB_VERT = 1&
End Enum
Public Enum SIF_MASK
SIF_RANGE = &H1&
SIF_page = &H2&
SIF_POS = &H4&
SIF_DISABLENOSCROLL = &H8&
SIF_TRACKPOS = &H10&
SIF_ALL = SIF_RANGE Or SIF_page Or SIF_POS
End Enum
Private Type SCROLLINFO
cbSize As Long
fMask As SIF_MASK
nMin As Long
nMax As Long
nPage As Long
nPos As Long
nTrackPos As Long
End Type
Private Declare Function GetScrollInfo Lib "user32" (ByVal hwnd As
Long, ByVal fnBar As HORZ_VERT, lpScrollInfo As SCROLLINFO) As Long
Private Declare Function SetScrollInfo Lib "user32" (ByVal hwnd As
Long, ByVal fnBar As HORZ_VERT, lpcScrollInfo As SCROLLINFO, ByVal
fRedraw As Boolean) As Long