MSG.hwnd 属性

定义

获取或设置窗口句柄(HWND)到窗口过程接收消息的窗口。

public:
 property IntPtr hwnd { IntPtr get(); void set(IntPtr value); };
public IntPtr hwnd { [System.Security.SecurityCritical] get; [System.Security.SecurityCritical] set; }
public IntPtr hwnd { get; set; }
[<get: System.Security.SecurityCritical>]
[<set: System.Security.SecurityCritical>]
member this.hwnd : nativeint with get, set
member this.hwnd : nativeint with get, set
Public Property hwnd As IntPtr

属性值

IntPtr

nativeint

窗口句柄(HWND)。

属性

注解

hwndnull 消息是线程消息时。

适用于