TTN.cs 808 B

12345678910111213141516171819202122232425262728293031
  1. using System;
  2. using System.Runtime.InteropServices;
  3. namespace LYFZ.OtherExpansion.Win32.Const
  4. {
  5. public static class TTN
  6. {
  7. public const int TTN_FIRST = -520;
  8. public const int TTN_GETDISPINFOA = -520;
  9. public const int TTN_GETDISPINFOW = -530;
  10. public const int TTN_SHOW = -521;
  11. public const int TTN_POP = -522;
  12. public const int TTN_LINKCLICK = -523;
  13. public const int TTN_NEEDTEXTA = -520;
  14. public const int TTN_NEEDTEXTW = -530;
  15. public const int TTN_LAST = -549;
  16. public static readonly int TTN_GETDISPINFO;
  17. public static readonly int TTN_NEEDTEXT;
  18. static TTN()
  19. {
  20. bool unicode = Marshal.SystemDefaultCharSize != 1;
  21. if (unicode)
  22. {
  23. TTN.TTN_GETDISPINFO = -530;
  24. TTN.TTN_NEEDTEXT = -530;
  25. return;
  26. }
  27. TTN.TTN_GETDISPINFO = -520;
  28. TTN.TTN_NEEDTEXT = -520;
  29. }
  30. }
  31. }