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