MSG.hwnd Property

 

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

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

public IntPtr hwnd {
	[SecurityCriticalAttribute]
	get;
	[SecurityCriticalAttribute]
	set;
}

Property Value

Type: System.IntPtr

The window handle (HWND).

hwnd is null when the message is a thread message.

.NET Framework
Available since 3.0
Return to top
Show: