BalloonFlags.cs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. using System;
  2. namespace Hardcodet.Wpf.TaskbarNotification.Interop
  3. {
  4. /// <summary>
  5. /// Flags that define the icon that is shown on a balloon
  6. /// tooltip.
  7. /// </summary>
  8. public enum BalloonFlags
  9. {
  10. /// <summary>
  11. /// No icon is displayed.
  12. /// </summary>
  13. None = 0x00,
  14. /// <summary>
  15. /// An information icon is displayed.
  16. /// </summary>
  17. Info = 0x01,
  18. /// <summary>
  19. /// A warning icon is displayed.
  20. /// </summary>
  21. Warning = 0x02,
  22. /// <summary>
  23. /// An error icon is displayed.
  24. /// </summary>
  25. Error = 0x03,
  26. /// <summary>
  27. /// Windows XP Service Pack 2 (SP2) and later.
  28. /// Use a custom icon as the title icon.
  29. /// </summary>
  30. User = 0x04,
  31. /// <summary>
  32. /// Windows XP (Shell32.dll version 6.0) and later.
  33. /// Do not play the associated sound. Applies only to balloon ToolTips.
  34. /// </summary>
  35. NoSound = 0x10,
  36. /// <summary>
  37. /// Windows Vista (Shell32.dll version 6.0.6) and later. The large version
  38. /// of the icon should be used as the balloon icon. This corresponds to the
  39. /// icon with dimensions SM_CXICON x SM_CYICON. If this flag is not set,
  40. /// the icon with dimensions XM_CXSMICON x SM_CYSMICON is used.<br/>
  41. /// - This flag can be used with all stock icons.<br/>
  42. /// - Applications that use older customized icons (NIIF_USER with hIcon) must
  43. /// provide a new SM_CXICON x SM_CYICON version in the tray icon (hIcon). These
  44. /// icons are scaled down when they are displayed in the System Tray or
  45. /// System Control Area (SCA).<br/>
  46. /// - New customized icons (NIIF_USER with hBalloonIcon) must supply an
  47. /// SM_CXICON x SM_CYICON version in the supplied icon (hBalloonIcon).
  48. /// </summary>
  49. LargeIcon = 0x20,
  50. /// <summary>
  51. /// Windows 7 and later.
  52. /// </summary>
  53. RespectQuietTime = 0x80
  54. }
  55. }