private SCROLLBARINFO GetScrollBarInfo(IntPtr hWnd, uint objid)
        {
            SCROLLBARINFO sbi = new SCROLLBARINFO();
            sbi.cbSize = Marshal.SizeOf(sbi);

            NativeMethods.GetScrollBarInfo(hWnd, objid, ref sbi);
            return sbi;
        }
Esempio n. 2
0
 public static extern int SendMessage(
     IntPtr hWnd, int msg, int wParam, ref SCROLLBARINFO lParam);
 private SCROLLBARINFO GetScrollBarInfo(IntPtr hWnd)
 {
     SCROLLBARINFO sbi = new SCROLLBARINFO();
     sbi.cbSize = Marshal.SizeOf(sbi);
     NativeMethods.SendMessage(
         hWnd,
         SBM.SBM_GETSCROLLBARINFO,
         0,
         ref sbi);
     return sbi;
 }
Esempio n. 4
0
 public static extern int GetScrollBarInfo(
     IntPtr hWnd, uint idObject, ref SCROLLBARINFO psbi);