ORTIPIC
Messages postés41Date d'inscriptionmercredi 26 février 2003StatutMembreDernière intervention16 juillet 2007
-
22 mars 2006 à 16:57
ORTIPIC
Messages postés41Date d'inscriptionmercredi 26 février 2003StatutMembreDernière intervention16 juillet 2007
-
22 mars 2006 à 19:31
Salut a tous
-----------
j ai trouvé ce code tres cool
mais je veux son contraire
recuperer la valeur des scrollbar d un listview
si non:
l index du premier item visible en haut du listview apres un scroll
merci de m aider
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal _
hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, _
lParam As Any) As Long
Const LVM_FIRST = &H1000
Const LVM_SCROLL = (LVM_FIRST + 20)
' Scroll the contents of a ListView control horizontally and vertically.
'
' If the ListView control is in List mode, DX is the number of
' columns to scroll. If it is in Report mode, DY is rounded to the
' nearest number of pixels that represent a whole line.
Function ListViewScroll(lvw As ListView, ByVal dx As Long, ByVal dy As Long)
SendMessage lvw.hwnd, LVM_SCROLL, dx, ByVal dy
End Function