In This Article

MouseHookEventArgs Class

Provides data for a mouse hook callback.

public class MouseHookEventArgs : EventArgs
Inheritance:
object EventArgs object

Properties

Handle

The handle of the window that will receive the message.

public nint Handle { get; }

Property Value

nint

Handled

Indicates whether the event has been handled.

public bool Handled { get; set; }

Property Value

bool:

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

HitTestCodeHiWord

The type of area that the mouse is over.

public short HitTestCodeHiWord { get; }

Property Value

short

HitTestCodeLoWord

The type of area that the mouse is over.

public short HitTestCodeLoWord { get; }

Property Value

short

Message

The mouse message that is being sent.

public int Message { get; }

Property Value

int

MouseDataHiWord

Extra mouse data that was sent with the message.

public short MouseDataHiWord { get; }

Property Value

short

MouseDataLoWord

Extra mouse data that was sent with the message.

public short MouseDataLoWord { get; }

Property Value

short

Position

The position of the mouse.

public Point Position { get; }

Property Value

Point

Inherited Members

Extension Methods