C# Class Hardcodet.Wpf.TaskbarNotification.Interop.WindowMessageSink

Receives messages from the taskbar icon through window messages of an underlying helper window.
Inheritance: IDisposable
Mostrar archivo Open project: kampiuceris/PsHandler Class Usage Examples

Private Properties

Property Type Description
CreateEmpty WindowMessageSink
CreateMessageWindow void
Dispose void
OnWindowMessageReceived System.IntPtr
ProcessWindowMessage void
WindowMessageSink System

Public Methods

Method Description
Dispose ( ) : void

Disposes the object.

This method is not virtual by design. Derived classes should override Dispose(bool).

WindowMessageSink ( NotifyIconVersion version ) : System

Creates a new message sink that receives message from a given taskbar icon.

Private Methods

Method Description
CreateEmpty ( ) : WindowMessageSink

Creates a dummy instance that provides an empty pointer rather than a real window handler.
Used at design time.

CreateMessageWindow ( ) : void

Creates the helper message window that is used to receive messages from the taskbar icon.

Dispose ( bool disposing ) : void

Removes the windows hook that receives window messages and closes the underlying helper window.

OnWindowMessageReceived ( IntPtr hwnd, uint messageId, IntPtr wparam, IntPtr lparam ) : IntPtr

Callback method that receives messages from the taskbar area.

ProcessWindowMessage ( uint msg, IntPtr wParam, IntPtr lParam ) : void

Processes incoming system messages.

WindowMessageSink ( ) : System

Method Details

Dispose() public method

Disposes the object.
This method is not virtual by design. Derived classes should override Dispose(bool).
public Dispose ( ) : void
return void

WindowMessageSink() public method

Creates a new message sink that receives message from a given taskbar icon.
public WindowMessageSink ( NotifyIconVersion version ) : System
version NotifyIconVersion
return System