CommonDialog.OwnerWndProc(IntPtr, Int32, IntPtr, IntPtr) 方法

定义

定义要重写的所有者窗口过程,以便向通用对话框添加特定功能。

C#
protected virtual IntPtr OwnerWndProc(IntPtr hWnd, int msg, IntPtr wparam, IntPtr lparam);

参数

hWnd
IntPtr

要发送的消息的窗口句柄。

msg
Int32

要发送的 Win32 消息。

wparam
IntPtr

要与消息一起发送的 wparam

lparam
IntPtr

要与消息一起发送的 lparam

返回

IntPtr

消息处理的结果,它依赖于所发送的消息。

注解

将消息发送到公共对话框的所有者窗口时,将在此处转移控制权。 继承类可以重写此方法,以将特定功能添加到通用对话框。

适用于

产品 版本
.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