Hi all,
I like to get the ScrollInfo of the horizontal scrollbar in a ListView.
But it allways return false.
Some lines before, i get ScrollBarInfo, which works perfectly!
Here some Code:
[DllImport("user32.dll", EntryPoint="GetScrollInfo",
CharSet=CharSet.Auto, SetLastError=true)]
public static extern bool GetScrollInfo (IntPtr hWnd, int fnBar, ref
SCROLLINFO info);
Win32.SCROLLINFO si = new Win32.SCROLLINFO();
si.cbSize = System.Runtime.InteropServices.Marshal.SizeOf(si);
found = Win32.GetScrollInfo( this.Handle, (int)Win32.SCROLLBAR.SB_HORZ,
ref si ); // returns false
int lastError =
System.Runtime.InteropServices.Marshal.GetLastWin3 2Error(); // Is 127
at First use, later 1421
Please help!!
thx surech