C# Class ManagedWin32.Api.NotifyIconData

显示文件 Open project: MathewSachin/ManagedWin32 Class Usage Examples

Public Properties

Property Type Description
BalloonFlags BalloonFlags
CallbackMessageId uint
CustomBalloonIconHandle System.IntPtr
IconHandle System.IntPtr
IconState IconState
StateMask IconState
TaskbarIconGuid System.Guid
TaskbarIconId uint
ValidMembers IconDataMembers
VersionOrTimeout uint
WindowHandle System.IntPtr
cbSize uint

Public Methods

Method Description
CreateDefault ( IntPtr handle ) : NotifyIconData

Creates a default data structure that provides a hidden taskbar icon without the icon being set.

Method Details

CreateDefault() public static method

Creates a default data structure that provides a hidden taskbar icon without the icon being set.
public static CreateDefault ( IntPtr handle ) : NotifyIconData
handle System.IntPtr
return NotifyIconData

Property Details

BalloonFlags public_oe property

Adds an icon to a balloon ToolTip, which is placed to the left of the title. If the BalloonTitle member is zero-length, the icon is not shown.
public BalloonFlags BalloonFlags
return BalloonFlags

CallbackMessageId public_oe property

Application-defined message identifier. The system uses this identifier to send notifications to the window identified in hWnd.
public uint CallbackMessageId
return uint

CustomBalloonIconHandle public_oe property

Windows Vista (Shell32.dll version 6.0.6) and later. The handle of a customized balloon icon provided by the application that should be used independently of the tray icon. If this member is non-NULL and the BalloonFlags.User flag is set, this icon is used as the balloon icon.
If this member is NULL, the legacy behavior is carried out.
public IntPtr,System CustomBalloonIconHandle
return System.IntPtr

IconHandle public_oe property

A handle to the icon that should be displayed. Just Icon.Handle.
public IntPtr,System IconHandle
return System.IntPtr

IconState public_oe property

State of the icon. Remember to also set the StateMask.
public IconState IconState
return IconState

StateMask public_oe property

A value that specifies which bits of the state member are retrieved or modified. For example, setting this member to IconState.Hidden causes only the item's hidden state to be retrieved.
public IconState StateMask
return IconState

TaskbarIconGuid public_oe property

Windows XP (Shell32.dll version 6.0) and later.
- Windows 7 and later: A registered GUID that identifies the icon. This value overrides uID and is the recommended method of identifying the icon.
- Windows XP through Windows Vista: Reserved.
public Guid,System TaskbarIconGuid
return System.Guid

TaskbarIconId public_oe property

Application-defined identifier of the taskbar icon. The Shell uses hWnd and uID to identify which icon to operate on when Shell_NotifyIcon is invoked. You can have multiple icons associated with a single hWnd by assigning each a different uID. This feature, however is currently not used.
public uint TaskbarIconId
return uint

ValidMembers public_oe property

Flags that indicate which of the other members contain valid data. This member can be a combination of the NIF_XXX constants.
public IconDataMembers ValidMembers
return IconDataMembers

VersionOrTimeout public_oe property

Mainly used to set the version when Shell32.Shell_NotifyIcon is invoked with NotifyCommand.SetVersion. However, for legacy operations, the same member is also used to set timouts for balloon ToolTips.
public uint VersionOrTimeout
return uint

WindowHandle public_oe property

Handle to the window that receives notification messages associated with an icon in the taskbar status area. The Shell uses hWnd and uID to identify which icon to operate on when Shell_NotifyIcon is invoked.
public IntPtr,System WindowHandle
return System.IntPtr

cbSize public_oe property

Size of this structure, in bytes.
public uint cbSize
return uint