namespace Microsoft.Win32 { //SIF定义 public static partial class NativeMethods { /// /// The nMin and nMax members contain the minimum and maximum values for the scrolling range. /// public const uint SIF_RANGE = 0x0001; /// /// The nPage member contains the page size for a proportional scroll bar. /// public const uint SIF_PAGE = 0x0002; /// /// The nPos member contains the scroll box position, which is not updated while the user drags the scroll box. /// public const uint SIF_POS = 0x0004; /// /// This value is used only when setting a scroll bar's parameters. If the scroll bar's new parameters make the scroll bar unnecessary, disable the scroll bar instead of removing it. /// public const uint SIF_DISABLENOSCROLL = 0x0008; /// /// The nTrackPos member contains the current position of the scroll box while the user is dragging it. /// public const uint SIF_TRACKPOS = 0x0010; /// /// Combination of SIF_PAGE, SIF_POS, SIF_RANGE, and SIF_TRACKPOS. /// public const uint SIF_ALL = (SIF_RANGE | SIF_PAGE | SIF_POS | SIF_TRACKPOS); } }