System.Windows.Forms.Message Structure

Implements a Windows message.

See Also: Message Members

Syntax

public struct Message

Remarks

The System.Windows.Forms.Message structure wraps messages that Windows sends. You can use this structure to wrap a message and assign it to the window procedure to be dispatched. You can also use this structure to get information about a message the system sends to your application or controls. For more information about Windows messages, see tp://go.microsoft.com/fwlink/?LinkId=198815.

You cannot create the System.Windows.Forms.Message directly. Instead, use the Message.Create(IntPtr, int, IntPtr, IntPtr) method. For the sake of efficiency, the System.Windows.Forms.Message uses its pool of existing System.Windows.Forms.Messages instead of instantiating a new one, if possible. However, if a System.Windows.Forms.Message is not available in the pool, a new one is instantiated.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0