IconDataMembers.cs 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. using System;
  2. namespace Hardcodet.Wpf.TaskbarNotification.Interop
  3. {
  4. /// <summary>
  5. /// Indicates which members of a <see cref="NotifyIconData"/> structure
  6. /// were set, and thus contain valid data or provide additional information
  7. /// to the ToolTip as to how it should display.
  8. /// </summary>
  9. [Flags]
  10. public enum IconDataMembers
  11. {
  12. /// <summary>
  13. /// The message ID is set.
  14. /// </summary>
  15. Message = 0x01,
  16. /// <summary>
  17. /// The notification icon is set.
  18. /// </summary>
  19. Icon = 0x02,
  20. /// <summary>
  21. /// The tooltip is set.
  22. /// </summary>
  23. Tip = 0x04,
  24. /// <summary>
  25. /// State information (<see cref="IconState"/>) is set. This
  26. /// applies to both <see cref="NotifyIconData.IconState"/> and
  27. /// <see cref="NotifyIconData.StateMask"/>.
  28. /// </summary>
  29. State = 0x08,
  30. /// <summary>
  31. /// The balloon ToolTip is set. Accordingly, the following
  32. /// members are set: <see cref="NotifyIconData.BalloonText"/>,
  33. /// <see cref="NotifyIconData.BalloonTitle"/>, <see cref="NotifyIconData.BalloonFlags"/>,
  34. /// and <see cref="NotifyIconData.VersionOrTimeout"/>.
  35. /// </summary>
  36. Info = 0x10,
  37. // Internal identifier is set. Reserved, thus commented out.
  38. //Guid = 0x20,
  39. /// <summary>
  40. /// Windows Vista (Shell32.dll version 6.0.6) and later. If the ToolTip
  41. /// cannot be displayed immediately, discard it.<br/>
  42. /// Use this flag for ToolTips that represent real-time information which
  43. /// would be meaningless or misleading if displayed at a later time.
  44. /// For example, a message that states "Your telephone is ringing."<br/>
  45. /// This modifies and must be combined with the <see cref="Info"/> flag.
  46. /// </summary>
  47. Realtime = 0x40,
  48. /// <summary>
  49. /// Windows Vista (Shell32.dll version 6.0.6) and later.
  50. /// Use the standard ToolTip. Normally, when uVersion is set
  51. /// to NOTIFYICON_VERSION_4, the standard ToolTip is replaced
  52. /// by the application-drawn pop-up user interface (UI).
  53. /// If the application wants to show the standard tooltip
  54. /// in that case, regardless of whether the on-hover UI is showing,
  55. /// it can specify NIF_SHOWTIP to indicate the standard tooltip
  56. /// should still be shown.<br/>
  57. /// Note that the NIF_SHOWTIP flag is effective until the next call
  58. /// to Shell_NotifyIcon.
  59. /// </summary>
  60. UseLegacyToolTips = 0x80
  61. }
  62. }