namespace Microsoft.Win32
{
//SBM定义
public static partial class NativeMethods
{
///
/// The SBM_SETPOS message is sent to set the position of the scroll box (thumb) and, if requested, redraw the scroll bar to reflect the new position of the scroll box.
/// Applications should not send this message directly.
/// Instead, they should use the SetScrollPos function.
/// A window receives this message through its WindowProc function.
/// Applications which implement a custom scroll bar control must respond to these messages for the SetScrollPos function to work properly.
///
public const int SBM_SETPOS = 0x00E0;
///
/// The SBM_GETPOS message is sent to retrieve the current position of the scroll box of a scroll bar control.
/// The current position is a relative value that depends on the current scrolling range.
/// For example, if the scrolling range is 0 through 100 and the scroll box is in the middle of the bar, the current position is 50.
/// Applications should not send this message directly. Instead, they should use the GetScrollPos function.
/// A window receives this message through its WindowProc function.
/// Applications which implement a custom scroll bar control must respond to these messages for the GetScrollPos function to function properly.
///
public const int SBM_GETPOS = 0x00E1;
///
/// The SBM_SETRANGE message is sent to set the minimum and maximum position values for the scroll bar control.
/// Applications should not send this message directly.
/// Instead, they should use the SetScrollRange function.
/// A window receives this message through its WindowProc function.
/// Applications which implement a custom scroll bar control must respond to these messages for the SetScrollRange function to work properly.
///
public const int SBM_SETRANGE = 0x00E2;
///
/// An application sends the SBM_SETRANGEREDRAW message to a scroll bar control to set the minimum and maximum position values and to redraw the control.to work properly.
///
public const int SBM_SETRANGEREDRAW = 0x00E6;
///
/// The SBM_GETRANGE message is sent to retrieve the minimum and maximum position values for the scroll bar control.
/// Applications should not send this message directly. Instead, they should use the GetScrollRange function.
/// A window receives this message through its WindowProc function.
/// Applications which implement a custom scroll bar control must respond to these messages for the GetScrollRange function to work properly.
///
public const int SBM_GETRANGE = 0x00E3;
///
/// An application sends the SBM_ENABLE_ARROWS message to enable or disable one or both arrows of a scroll bar control.
///
public const int SBM_ENABLE_ARROWS = 0x00E4;
///
/// The SBM_SETSCROLLINFO message is sent to set the parameters of a scroll bar.
/// Applications should not send this message directly.
/// Instead, they should use the SetScrollInfo function.
/// A window receives this message through its WindowProc function.
/// Applications which implement a custom scroll bar control must respond to these messages for the SetScrollInfo function to function properly.
///
public const int SBM_SETSCROLLINFO = 0x00E9;
///
/// The SBM_GETSCROLLINFO message is sent to retrieve the parameters of a scroll bar.
/// Applications should not send this message directly. Instead, they should use the GetScrollInfo function.
/// A window receives this message through its WindowProc function.
/// Applications which implement a custom scroll bar control must respond to these messages for the GetScrollInfo function to work properly.
///
public const int SBM_GETSCROLLINFO = 0x00EA;
///
/// Sent by an application to retrieve information about the specified scroll bar.
///
public const int SBM_GETSCROLLBARINFO = 0x00EB;
}
}