using System.Runtime.InteropServices; namespace Microsoft.Win32 { /// /// SCROLLINFO定义 /// public static partial class NativeMethods { /// /// The SCROLLINFO structure contains scroll bar parameters to be set by the SetScrollInfo function (or SBM_SETSCROLLINFO message), or retrieved by the GetScrollInfo function (or SBM_GETSCROLLINFO message). /// [StructLayout(LayoutKind.Sequential)] public struct SCROLLINFO { /// /// Specifies the size, in bytes, of this structure. The caller must set this to sizeof(SCROLLINFO). /// public int cbSize; /// /// Specifies the scroll bar parameters to set or retrieve. This member can be a combination of the following values: SIF_ /// public uint fMask; /// /// Specifies the minimum scrolling position. /// public int nMin; /// /// Specifies the maximum scrolling position. /// public int nMax; /// /// Specifies the page size, in device units. A scroll bar uses this value to determine the appropriate size of the proportional scroll box. /// public int nPage; /// /// Specifies the position of the scroll box. /// public int nPos; /// /// Specifies the immediate position of a scroll box that the user is dragging. An application can retrieve this value while processing the SB_THUMBTRACK request code. An application cannot set the immediate scroll position; the SetScrollInfo function ignores this member. /// public int nTrackPos; } } }