[DllImport("user32.dll", CharSet = CharSet.Unicode)] public static extern int GetScrollPos(IntPtr hWnd、int nBar); [DllImport("user32.dll", CharSet = CharSet.Unicode)] public static extern int SetScrollPos(IntPtr hWnd、int nBar、int nPos、bool bRedraw); プライベート定数int SB_HORZ = 0x0。プライベート定数int SB_VERT = 0x1。