CommonDialog.OwnerWndProc(IntPtr, Int32, IntPtr, IntPtr) 方法
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
定义要重写的所有者窗口过程,以便向通用对话框添加特定功能。
protected:
virtual IntPtr OwnerWndProc(IntPtr hWnd, int msg, IntPtr wparam, IntPtr lparam);
C#
protected virtual IntPtr OwnerWndProc(IntPtr hWnd, int msg, IntPtr wparam, IntPtr lparam);
abstract member OwnerWndProc : nativeint * int * nativeint * nativeint -> nativeint
override this.OwnerWndProc : nativeint * int * nativeint * nativeint -> nativeint
Protected Overridable Function OwnerWndProc (hWnd As IntPtr, msg As Integer, wparam As IntPtr, lparam As IntPtr) As IntPtr
- hWnd
-
IntPtr
nativeint
要发送的消息的窗口句柄。
- msg
- Int32
要发送的 Win32 消息。
- wparam
-
IntPtr
nativeint
要与消息一起发送的 wparam
。
- lparam
-
IntPtr
nativeint
要与消息一起发送的 lparam
。
IntPtr
nativeint
消息处理的结果,它依赖于所发送的消息。
将消息发送到公共对话框的所有者窗口时,将在此处转移控制权。 继承类可以重写此方法,以将特定功能添加到通用对话框。
产品 | 版本 |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |