TTS.cs 2.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. namespace Microsoft.Win32
  2. {
  3. //TTS定义
  4. public static partial class NativeMethods
  5. {
  6. /// <summary>
  7. /// Indicates that the tooltip control appears when the cursor is on a tool, even if the tooltip control's owner window is inactive. Without this style, the tooltip appears only when the tool's owner window is active.
  8. /// </summary>
  9. public const int TTS_ALWAYSTIP = 0x01;
  10. /// <summary>
  11. /// Prevents the system from stripping ampersand characters from a string or terminating a string at a tab character. Without this style, the system automatically strips ampersand characters and terminates a string at the first tab character. This allows an application to use the same string as both a menu item and as text in a tooltip control.
  12. /// </summary>
  13. public const int TTS_NOPREFIX = 0x02;
  14. /// <summary>
  15. /// Version 5.80. Disables sliding tooltip animation on Windows 98 and Windows 2000 systems. This style is ignored on earlier systems.
  16. /// </summary>
  17. public const int TTS_NOANIMATE = 0x10;
  18. /// <summary>
  19. /// Version 5.80. Disables fading tooltip animation on Windows 2000 systems. This style is ignored on earlier Windows NT systems, and on Windows 95 and Windows 98.
  20. /// </summary>
  21. public const int TTS_NOFADE = 0x20;
  22. /// <summary>
  23. /// Version 5.80. Indicates that the tooltip control has the appearance of a cartoon "balloon," with rounded corners and a stem pointing to the item.
  24. /// </summary>
  25. public const int TTS_BALLOON = 0x40;
  26. /// <summary>
  27. /// Displays a Close button on the tooltip. Valid only when the tooltip has the TTS_BALLOON style and a title; see TTM_SETTITLE.
  28. /// </summary>
  29. public const int TTS_CLOSE = 0x80;
  30. /// <summary>
  31. /// Uses themed hyperlinks. The theme will define the styles for any links in the tooltip. This style always requires TTF_PARSELINKS to be set.
  32. /// </summary>
  33. public const int TTS_USEVISUALSTYLE = 0x100;
  34. }
  35. }