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 *  -> nativeint
override this.WndProc : nativeint * int * nativeint * nativeint *  -> 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.Zero為保全。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

適用於