WindowsFormsHost.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在派生类中实现时,访问托管子窗口的窗口进程。
protected:
override IntPtr WndProc(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, bool % handled);
protected override IntPtr WndProc(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled);
override this.WndProc : nativeint * int * nativeint * nativeint * bool -> nativeint
Protected Overrides 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
子窗口的窗口句柄。