SetScrollPos: scroll bar moving, but control content not updating
Posted
by sniperX
on Stack Overflow
See other posts from Stack Overflow
or by sniperX
Published on 2010-03-08T14:50:52Z
Indexed on
2010/03/08
15:06 UTC
Read the original article
Hit count: 217
[DllImport("user32.dll")]
public static extern int SetScrollPos(IntPtr hWnd, int nBar, int nPos, bool bRedraw);
[DllImport("user32.dll", CharSet = System.Runtime.InteropServices.CharSet.Auto)]
public static extern int GetScrollPos(int hWnd, int nBar);
So those are the externs im using to move the scroll position, what im doing, is i get the current position, and add or substract an exact amount of pixels, and the scroll bar on my form moves perfectly how i want it, but the content in the control stays stationary. What is the problem here?
© Stack Overflow or respective owner