In This Article

MouseHookEventArgs Class

Provides data for a mouse hook callback.

public class MouseHookEventArgs : EventArgs
Inheritance:
object EventArgs object

Properties

Handle

Gets the handle of the window that will receive the message.

public IntPtr Handle { get; }

Property Value

IntPtr:

The handle of the window that will receive the message.

Handled

Gets or sets whether the event has been handled.

public bool Handled { get; set; }

Property Value

bool:

true if the event has been handled; otherwise, false.

HitTestCodeHiWord

Gets the type of area that the mouse is over.

public short HitTestCodeHiWord { get; }

Property Value

short:

The type of area that the mouse is over.

HitTestCodeLoWord

Gets the type of area that the mouse is over.

public short HitTestCodeLoWord { get; }

Property Value

short:

The type of area that the mouse is over.

Message

Gets the mouse message that is being sent.

public int Message { get; }

Property Value

int:

The mouse message that is being sent.

MouseDataHiWord

Gets extra mouse data that was sent with the message.

public short MouseDataHiWord { get; }

Property Value

short:

Extra mouse data that was sent with the message.

MouseDataLoWord

Gets extra mouse data that was sent with the message.

public short MouseDataLoWord { get; }

Property Value

short:

Extra mouse data that was sent with the message.

Position

Gets the position of the mouse.

public Point Position { get; }

Property Value

Point:

A Point containing the position of the mouse.

Inherited Members