MSG Structure

 

Contains message information from a thread's message queue.

Namespace:   System.Windows.Interop
Assembly:  WindowsBase (in WindowsBase.dll)

[SerializableAttribute]
public struct MSG

NameDescription
System_CAPS_pubpropertyhwnd

Gets or sets the window handle (HWND) to the window whose window procedure receives the message.

System_CAPS_pubpropertylParam

Gets or sets the lParam value that specifies additional information about the message. The exact meaning depends on the value of the message member.

System_CAPS_pubpropertymessage

Gets or sets the message identifier.

System_CAPS_pubpropertypt_x

Gets or sets the x coordinate of the cursor position on the screen, when the message was posted.

System_CAPS_pubpropertypt_y

Gets or sets the y coordinate of the cursor position on the screen, when the message was posted.

System_CAPS_pubpropertytime

Gets or sets the time at which the message was posted.

System_CAPS_pubpropertywParam

Gets or sets the wParam value for the message, which specifies additional information about the message. The exact meaning depends on the value of the message.

NameDescription
System_CAPS_pubmethodEquals(Object)

Indicates whether this instance and a specified object are equal.(Inherited from ValueType.)

System_CAPS_pubmethodGetHashCode()

Returns the hash code for this instance.(Inherited from ValueType.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns the fully qualified type name of this instance.(Inherited from ValueType.)

This type provides similar information to the unmanaged Win32 MSG structure.

.NET Framework
Available since 3.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: