HwndHost.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean) HwndHost.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean) HwndHost.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean) HwndHost.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean) Method

定義

在衍生類別中覆寫時,存取所裝載之子視窗的視窗處理序 (控制代碼)。When overridden in a derived class, accesses the window process (handle) of the hosted child window.

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);
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 IntPtr IntPtr IntPtr

所裝載之視窗的視窗控制代碼。The window handle of the hosted window.

msg
Int32 Int32 Int32 Int32

要採取行動的訊息。The message to act upon.

wParam
IntPtr IntPtr IntPtr IntPtr

可能與處理訊息相關的資訊。Information that may be relevant to handling the message. 這通常用來儲存較小的資訊,例如旗標。This is typically used to store small pieces of information, such as flags.

lParam
IntPtr IntPtr IntPtr IntPtr

可能與處理訊息相關的資訊。Information that may be relevant to handling the message. 這通常用來參考物件。This is typically used to reference an object.

handled
Boolean Boolean Boolean Boolean

事件產生是否應該標示已處理。Whether events resulting should be marked handled.

傳回

子視窗的視窗控制代碼。The window handle of the child window.

備註

重要

此類型或成員無法在網際網路安全性區域中使用。This type or member is not available in the Internet security zone.

給繼承者的注意事項

HwndHost的基底執行並不會傳回實際的進程,而是會傳回IntPtr 零做為安全的。The base implementation in HwndHost does not return a practical process, but will return IntPtr.Zero as a failsafe.

安全性

SecurityPermission
呼叫這個方法。to call this method. 相關聯的列舉:UnmanagedCodeAssociated enumeration: UnmanagedCode

適用於