HwndHost.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當在衍生類別中被覆寫時,會存取託管子視窗的視窗程序(handle)。
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
子窗的把手。
- 屬性
備註
Important
此類型或成員在網際網路安全區域內無法使用。
給繼承者的注意事項
基礎 HwndHost 實作不會回傳實際流程,而是會作為保險機制回歸 IntPtr.Zero 。