SBM.cs 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. namespace Microsoft.Win32
  2. {
  3. //SBM定义
  4. public static partial class NativeMethods
  5. {
  6. /// <summary>
  7. /// <para>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.</para>
  8. /// <para>Applications should not send this message directly.</para>
  9. /// <para>Instead, they should use the SetScrollPos function.</para>
  10. /// <para>A window receives this message through its WindowProc function.</para>
  11. /// <para>Applications which implement a custom scroll bar control must respond to these messages for the SetScrollPos function to work properly.</para>
  12. /// </summary>
  13. public const int SBM_SETPOS = 0x00E0;
  14. /// <summary>
  15. /// <para>The SBM_GETPOS message is sent to retrieve the current position of the scroll box of a scroll bar control.</para>
  16. /// <para>The current position is a relative value that depends on the current scrolling range.</para>
  17. /// <para>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.</para>
  18. /// <para>Applications should not send this message directly. Instead, they should use the GetScrollPos function.</para>
  19. /// <para>A window receives this message through its WindowProc function.</para>
  20. /// <para>Applications which implement a custom scroll bar control must respond to these messages for the GetScrollPos function to function properly.</para>
  21. /// </summary>
  22. public const int SBM_GETPOS = 0x00E1;
  23. /// <summary>
  24. /// <para>The SBM_SETRANGE message is sent to set the minimum and maximum position values for the scroll bar control.</para>
  25. /// <para>Applications should not send this message directly.</para>
  26. /// <para>Instead, they should use the SetScrollRange function.</para>
  27. /// <para>A window receives this message through its WindowProc function.</para>
  28. /// <para>Applications which implement a custom scroll bar control must respond to these messages for the SetScrollRange function to work properly.</para>
  29. /// </summary>
  30. public const int SBM_SETRANGE = 0x00E2;
  31. /// <summary>
  32. /// 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.
  33. /// </summary>
  34. public const int SBM_SETRANGEREDRAW = 0x00E6;
  35. /// <summary>
  36. /// <para>The SBM_GETRANGE message is sent to retrieve the minimum and maximum position values for the scroll bar control.</para>
  37. /// <para>Applications should not send this message directly. Instead, they should use the GetScrollRange function.</para>
  38. /// <para>A window receives this message through its WindowProc function.</para>
  39. /// <para>Applications which implement a custom scroll bar control must respond to these messages for the GetScrollRange function to work properly.</para>
  40. /// </summary>
  41. public const int SBM_GETRANGE = 0x00E3;
  42. /// <summary>
  43. /// An application sends the SBM_ENABLE_ARROWS message to enable or disable one or both arrows of a scroll bar control.
  44. /// </summary>
  45. public const int SBM_ENABLE_ARROWS = 0x00E4;
  46. /// <summary>
  47. /// <para>The SBM_SETSCROLLINFO message is sent to set the parameters of a scroll bar.</para>
  48. /// <para>Applications should not send this message directly.</para>
  49. /// <para>Instead, they should use the SetScrollInfo function.</para>
  50. /// <para>A window receives this message through its WindowProc function.</para>
  51. /// <para>Applications which implement a custom scroll bar control must respond to these messages for the SetScrollInfo function to function properly.</para>
  52. /// </summary>
  53. public const int SBM_SETSCROLLINFO = 0x00E9;
  54. /// <summary>
  55. /// <para>The SBM_GETSCROLLINFO message is sent to retrieve the parameters of a scroll bar.</para>
  56. /// <para>Applications should not send this message directly. Instead, they should use the GetScrollInfo function.</para>
  57. /// <para>A window receives this message through its WindowProc function.</para>
  58. /// <para>Applications which implement a custom scroll bar control must respond to these messages for the GetScrollInfo function to work properly.</para>
  59. /// </summary>
  60. public const int SBM_GETSCROLLINFO = 0x00EA;
  61. /// <summary>
  62. /// Sent by an application to retrieve information about the specified scroll bar.
  63. /// </summary>
  64. public const int SBM_GETSCROLLBARINFO = 0x00EB;
  65. }
  66. }