Пример #1
0
        private SCROLLBARINFO GetScrollBarInfo(IntPtr hWnd, uint objid)
        {
            SCROLLBARINFO sbi = new SCROLLBARINFO();
            sbi.cbSize = Marshal.SizeOf(sbi);

            NativeMethods.GetScrollBarInfo(hWnd, objid, ref sbi);
            return sbi;
        }
Пример #2
0
 public static extern int SendMessage(
     IntPtr hWnd, int msg, int wParam, ref SCROLLBARINFO lParam);
Пример #3
0
 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;
 }
Пример #4
0
 public static extern int GetScrollBarInfo(
     IntPtr hWnd, uint idObject, ref SCROLLBARINFO psbi);