コード例 #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);