Click here to Skip to main content
15,896,606 members
Articles / General Programming / Threads

Plugged.NET - An event based plug-in library for enterprise application integration and extensibility

Rate me:
Please Sign up or sign in to vote.
4.89/5 (19 votes)
25 Jul 2013CPOL6 min read 34.1K   1.4K   92  
An event based plug-in library for enterprise application integration, extensibility and cross business application management.
using System;

namespace Common.Plugin.SampleHost.Taskbar.Interop
{
  /// <summary>
  /// Indicates which members of a <see cref="NotifyIconData"/> structure
  /// were set, and thus contain valid data or provide additional information
  /// to the ToolTip as to how it should display.
  /// </summary>
  [Flags]
  public enum IconDataMembers
  {
    /// <summary>
    /// The message ID is set.
    /// </summary>
    Message = 0x01,
    /// <summary>
    /// The notification icon is set.
    /// </summary>
    Icon = 0x02,
    /// <summary>
    /// The tooltip is set.
    /// </summary>
    Tip = 0x04,
    /// <summary>
    /// State information (<see cref="IconState"/>) is set. This
    /// applies to both <see cref="NotifyIconData.IconState"/> and
    /// <see cref="NotifyIconData.StateMask"/>.
    /// </summary>
    State = 0x08,
    /// <summary>
    /// The ballon ToolTip is set. Accordingly, the following
    /// members are set: <see cref="NotifyIconData.BalloonText"/>,
    /// <see cref="NotifyIconData.BalloonTitle"/>, <see cref="NotifyIconData.BalloonFlags"/>,
    /// and <see cref="NotifyIconData.VersionOrTimeout"/>.
    /// </summary>
    Info = 0x10,
    
    /// <summary>
    /// Internal identifier is set. Reserved, thus commented out.
    /// </summary>
    //Guid = 0x20,

    /// <summary>
    /// Windows Vista (Shell32.dll version 6.0.6) and later. If the ToolTip
    /// cannot be displayed immediately, discard it.<br/>
    /// Use this flag for ToolTips that represent real-time information which
    /// would be meaningless or misleading if displayed at a later time.
    /// For example, a message that states "Your telephone is ringing."<br/>
    /// This modifies and must be combined with the <see cref="Info"/> flag.
    /// </summary>
    Realtime = 0x40,
    /// <summary>
    /// Windows Vista (Shell32.dll version 6.0.6) and later.
    /// Use the standard ToolTip. Normally, when uVersion is set
    /// to NOTIFYICON_VERSION_4, the standard ToolTip is replaced
    /// by the application-drawn pop-up user interface (UI).
    /// If the application wants to show the standard tooltip
    /// in that case, regardless of whether the on-hover UI is showing,
    /// it can specify NIF_SHOWTIP to indicate the standard tooltip
    /// should still be shown.<br/>
    /// Note that the NIF_SHOWTIP flag is effective until the next call 
    /// to Shell_NotifyIcon.
    /// </summary>
    UseLegacyToolTips = 0x80
  }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
India India
is a poor software developer and thinker. Presently working on a theory of "complementary perception". It's a work in progress.

Comments and Discussions