Class WindowMessageSink
Receives messages from the taskbar icon through window messages of an underlying helper window.
Inheritance
Implements
Inherited Members
Namespace: Simplic.Framework.Core.TaskbarNotification.Interop
Assembly: Simplic.Framework.Base.dll
Syntax
public class WindowMessageSink : IDisposable
Constructors
| Improve this Doc View SourceWindowMessageSink(NotifyIconVersion)
Creates a new message sink that receives message from a given taskbar icon.
Declaration
public WindowMessageSink(NotifyIconVersion version)
Parameters
Type | Name | Description |
---|---|---|
NotifyIconVersion | version |
Fields
| Improve this Doc View SourceCallbackMessageId
The ID of messages that are received from the the taskbar icon.
Declaration
public const int CallbackMessageId = 1024
Field Value
Type | Description |
---|---|
System.Int32 |
Properties
| Improve this Doc View SourceIsDisposed
Set to true as soon as Dispose
has been invoked.
Declaration
public bool IsDisposed { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Version
The version of the underlying icon. Defines how incoming messages are interpreted.
Declaration
public NotifyIconVersion Version { get; set; }
Property Value
Type | Description |
---|---|
NotifyIconVersion |
Methods
| Improve this Doc View SourceDispose()
Disposes the object.
Declaration
public void Dispose()
Remarks
This method is not virtual by design. Derived classes should override Simplic.Framework.Core.TaskbarNotification.Interop.WindowMessageSink.Dispose(System.Boolean).
Finalize()
This destructor will run only if the Dispose() method does not get called. This gives this base class the opportunity to finalize.
Important: Do not provide destructors in types derived from this class.
Declaration
protected void Finalize()
Events
| Improve this Doc View SourceBalloonToolTipChanged
Fired if a balloon ToolTip was either displayed or closed (indicated by the boolean flag).
Declaration
public event Action<bool> BalloonToolTipChanged
Event Type
Type | Description |
---|---|
System.Action<System.Boolean> |
ChangeToolTipStateRequest
The custom tooltip should be closed or hidden.
Declaration
public event Action<bool> ChangeToolTipStateRequest
Event Type
Type | Description |
---|---|
System.Action<System.Boolean> |
MouseEventReceived
Fired in case the user clicked or moved within the taskbar icon area.
Declaration
public event Action<MouseEvent> MouseEventReceived
Event Type
Type | Description |
---|---|
System.Action<MouseEvent> |
TaskbarCreated
Fired if the taskbar was created or restarted. Requires the taskbar icon to be reset.
Declaration
public event Action TaskbarCreated
Event Type
Type | Description |
---|---|
System.Action |