C# Класс ManagedWin32.Api.NotifyIconData

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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

Открытые методы

Метод Описание
CreateDefault ( IntPtr handle ) : NotifyIconData

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

Описание методов

CreateDefault() публичный статический Метод

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
Результат NotifyIconData

Описание свойств

BalloonFlags публичное свойство

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
Результат BalloonFlags

CallbackMessageId публичное свойство

Application-defined message identifier. The system uses this identifier to send notifications to the window identified in hWnd.
public uint CallbackMessageId
Результат uint

CustomBalloonIconHandle публичное свойство

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
Результат System.IntPtr

IconHandle публичное свойство

A handle to the icon that should be displayed. Just Icon.Handle.
public IntPtr,System IconHandle
Результат System.IntPtr

IconState публичное свойство

State of the icon. Remember to also set the StateMask.
public IconState IconState
Результат IconState

StateMask публичное свойство

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
Результат IconState

TaskbarIconGuid публичное свойство

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
Результат System.Guid

TaskbarIconId публичное свойство

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
Результат uint

ValidMembers публичное свойство

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
Результат IconDataMembers

VersionOrTimeout публичное свойство

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
Результат uint

WindowHandle публичное свойство

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
Результат System.IntPtr

cbSize публичное свойство

Size of this structure, in bytes.
public uint cbSize
Результат uint