SIF.cs 1.4 KB

12345678910111213141516171819202122232425262728293031
  1. namespace Microsoft.Win32
  2. {
  3. //SIF定义
  4. public static partial class NativeMethods
  5. {
  6. /// <summary>
  7. /// The nMin and nMax members contain the minimum and maximum values for the scrolling range.
  8. /// </summary>
  9. public const uint SIF_RANGE = 0x0001;
  10. /// <summary>
  11. /// The nPage member contains the page size for a proportional scroll bar.
  12. /// </summary>
  13. public const uint SIF_PAGE = 0x0002;
  14. /// <summary>
  15. /// The nPos member contains the scroll box position, which is not updated while the user drags the scroll box.
  16. /// </summary>
  17. public const uint SIF_POS = 0x0004;
  18. /// <summary>
  19. /// 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.
  20. /// </summary>
  21. public const uint SIF_DISABLENOSCROLL = 0x0008;
  22. /// <summary>
  23. /// The nTrackPos member contains the current position of the scroll box while the user is dragging it.
  24. /// </summary>
  25. public const uint SIF_TRACKPOS = 0x0010;
  26. /// <summary>
  27. /// Combination of SIF_PAGE, SIF_POS, SIF_RANGE, and SIF_TRACKPOS.
  28. /// </summary>
  29. public const uint SIF_ALL = (SIF_RANGE | SIF_PAGE | SIF_POS | SIF_TRACKPOS);
  30. }
  31. }