Listview scrollbar.value=???

Résolu
ORTIPIC Messages postés 41 Date d'inscription mercredi 26 février 2003 Statut Membre Dernière intervention 16 juillet 2007 - 22 mars 2006 à 16:57
ORTIPIC Messages postés 41 Date d'inscription mercredi 26 février 2003 Statut Membre Dernière intervention 16 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

3 réponses

olixelle Messages postés 506 Date d'inscription vendredi 30 juillet 2004 Statut Membre Dernière intervention 3 mars 2008 2
22 mars 2006 à 19:01
Tes réponses se trouvent la: http://www.codeproject.com/vb/net/APIScroll.asp

Rollerman
3
ORTIPIC Messages postés 41 Date d'inscription mercredi 26 février 2003 Statut Membre Dernière intervention 16 juillet 2007
22 mars 2006 à 19:17
merci je regarde de suite.........................

FAB
0
ORTIPIC Messages postés 41 Date d'inscription mercredi 26 février 2003 Statut Membre Dernière intervention 16 juillet 2007
22 mars 2006 à 19:31
GetScrollPos
repond a ma question

merci a toi Olixelle

FAB
0
Rejoignez-nous