HwndHost.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean) 方法

定義

在衍生類別中覆寫時,存取所裝載之子視窗的視窗處理序 (控制代碼)。

protected:
 virtual IntPtr WndProc(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, bool % handled);
[System.Security.SecurityCritical]
protected virtual IntPtr WndProc (IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled);
protected virtual IntPtr WndProc (IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled);
[<System.Security.SecurityCritical>]
abstract member WndProc : nativeint * int * nativeint * nativeint * bool -> nativeint
override this.WndProc : nativeint * int * nativeint * nativeint * bool -> nativeint
abstract member WndProc : nativeint * int * nativeint * nativeint * bool -> nativeint
override this.WndProc : nativeint * int * nativeint * nativeint * bool -> nativeint
Protected Overridable Function WndProc (hwnd As IntPtr, msg As Integer, wParam As IntPtr, lParam As IntPtr, ByRef handled As Boolean) As IntPtr

參數

hwnd
IntPtr

nativeint

所裝載之視窗的視窗控制代碼。

msg
Int32

要採取行動的訊息。

wParam
IntPtr

nativeint

可能與處理訊息相關的資訊。 這通常用來儲存較小的資訊,例如旗標。

lParam
IntPtr

nativeint

可能與處理訊息相關的資訊。 這通常用來參考物件。

handled
Boolean

事件產生是否應該標示已處理。

傳回

IntPtr

nativeint

子視窗的視窗控制代碼。

屬性

備註

重要

此類型或成員無法在網際網路安全性區域中使用。

給繼承者的注意事項

中的基底實作 HwndHost 不會傳回實際程式,但會以失敗方式傳回 IntPtr.Zero

適用於