Re: Programmation scrool fenetre

Posté par albu le 1/3/2006 12:28:24
L'astuce de la reprisesaisie meritera que je l'essaye.
J'ai cherché dans les API

RetourFonction est un entier // Type C :INT
hWnd est un entier // Type C :HWND
nBar est un entier // Type C :int
nPos est un entier // Type C :int
bRedraw est un booléen // Type C :BOOL

hWnd = Handle(Fenetre_AScroller)
nBar = 3
bRedraw = Vrai

RetourFonction=API("USER32","SetScrollPos",hWnd,nBar,nPos,bRedraw)

Cela marche, attention si nBar = 0 la fenetre remonte mais pas le curseur de l'ascenceur.

Cette contribution était de : http://old.wdforge.org/newbb/viewtopic.php?forum=14&topic_id=3624&post_id=15290