Export (0) Print
Expand All

MSG Structure

Contains message information from a thread's message queue.

Namespace:  System.Windows.Interop
Assembly:  WindowsBase (in WindowsBase.dll)
XMLNS for XAML: Not mapped to an xmlns.

[SerializableAttribute]
public struct MSG

The MSG type exposes the following members.

  NameDescription
Public propertyhwndGets or sets the window handle (HWND) to the window whose window procedure receives the message.
Public propertylParamGets or sets the lParam value that specifies additional information about the message. The exact meaning depends on the value of the message member.
Public propertymessageGets or sets the message identifier.
Public propertypt_xGets or sets the x coordinate of the cursor position on the screen, when the message was posted.
Public propertypt_yGets or sets the y coordinate of the cursor position on the screen, when the message was posted.
Public propertytimeGets or sets the time at which the message was posted.
Public propertywParamGets 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.
Top

  NameDescription
Public methodEqualsIndicates whether this instance and a specified object are equal. (Inherited from ValueType.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeReturns the hash code for this instance. (Inherited from ValueType.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns the fully qualified type name of this instance. (Inherited from ValueType.)
Top

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

.NET Framework

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

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

Community Additions

ADD
Show:
© 2014 Microsoft