HwndHost.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在派生类中重写时,访问托管子窗口的窗口进程(句柄)。
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
此类型或成员在 Internet 安全区域中不可用。
继承者说明
基本实现 HwndHost 不会返回实际过程,但会作为故障返回 IntPtr.Zero 。