TTN.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435
  1. namespace Microsoft.Win32
  2. {
  3. //TTN定义
  4. public static partial class NativeMethods
  5. {
  6. /// <summary>
  7. /// 开始
  8. /// </summary>
  9. public const int TTN_FIRST = -520;
  10. /// <summary>
  11. /// 结束
  12. /// </summary>
  13. public const int TTN_LAST = -549;
  14. /// <summary>
  15. /// Notifies the owner window that a tooltip control is about to be displayed. This notification code is sent in the form of a WM_NOTIFY message.
  16. /// </summary>
  17. public const int TTN_SHOW = TTN_FIRST - 1;
  18. /// <summary>
  19. /// Notifies the owner window that a tooltip is about to be hidden. This notification code is sent in the form of a WM_NOTIFY message.
  20. /// </summary>
  21. public const int TTN_POP = TTN_FIRST - 2;
  22. /// <summary>
  23. /// Sent when a text link inside a balloon tooltip is clicked. This notification code is sent in the form of a WM_NOTIFY message.
  24. /// </summary>
  25. public const int TTN_LINKCLICK = TTN_FIRST - 3;
  26. /// <summary>
  27. /// Sent by a tooltip control to retrieve information needed to display a tooltip window. This notification code is sent in the form of a WM_NOTIFY message.
  28. /// </summary>
  29. public const int TTN_GETDISPINFO = TTN_FIRST - 10;
  30. /// <summary>
  31. /// Sent by a tooltip control to retrieve information needed to display a tooltip window. This notification code is identical to TTN_GETDISPINFO. This notification code is sent in the form of a WM_NOTIFY message.
  32. /// </summary>
  33. public const int TTN_NEEDTEXT = TTN_FIRST - 10;
  34. }
  35. }