SCROLLINFO.cs 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. using System.Runtime.InteropServices;
  2. namespace Microsoft.Win32
  3. {
  4. /// <summary>
  5. /// SCROLLINFO定义
  6. /// </summary>
  7. public static partial class NativeMethods
  8. {
  9. /// <summary>
  10. /// 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).
  11. /// </summary>
  12. [StructLayout(LayoutKind.Sequential)]
  13. public struct SCROLLINFO
  14. {
  15. /// <summary>
  16. /// Specifies the size, in bytes, of this structure. The caller must set this to sizeof(SCROLLINFO).
  17. /// </summary>
  18. public int cbSize;
  19. /// <summary>
  20. /// Specifies the scroll bar parameters to set or retrieve. This member can be a combination of the following values: SIF_
  21. /// </summary>
  22. public uint fMask;
  23. /// <summary>
  24. /// Specifies the minimum scrolling position.
  25. /// </summary>
  26. public int nMin;
  27. /// <summary>
  28. /// Specifies the maximum scrolling position.
  29. /// </summary>
  30. public int nMax;
  31. /// <summary>
  32. /// Specifies the page size, in device units. A scroll bar uses this value to determine the appropriate size of the proportional scroll box.
  33. /// </summary>
  34. public int nPage;
  35. /// <summary>
  36. /// Specifies the position of the scroll box.
  37. /// </summary>
  38. public int nPos;
  39. /// <summary>
  40. /// 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.
  41. /// </summary>
  42. public int nTrackPos;
  43. }
  44. }
  45. }