Hola.
Realmente no entiendo ese comportamiento, de hecho he utilizado ese código sin ningún tipo de inconveniente.
No ví ningún parámetro de la función que lo maneje, pero podés revisar aqui:
SetWindowLong Function, por si algo se me escapó.
Además el texto en:
About Scroll Bars, denota lo irregular del comportamiento que mencionás.
Cita:
If most of the object is visible, the scroll box occupies most of the scroll bar shaft. Similarly, if only a small portion of the object is visible, the scroll box occupies a small part of the scroll bar shaft.
|
Quizá el problema lo esté generando el uso de frames...
Un saludo.