MSG.hwnd 屬性

定義

取得或設定視窗的視窗控制代碼 (Window Handle) (HWND),該視窗的視窗程序 (Procedure) 會接收訊息。

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 當訊息是執行緒訊息時。

適用於