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

定义

定义要重写的所有者窗口过程,以便向通用对话框添加特定功能。Defines the owner window procedure that is overridden to add specific functionality to a common dialog box.

protected:
 virtual IntPtr OwnerWndProc(IntPtr hWnd, int msg, IntPtr wparam, IntPtr lparam);
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

要发送的消息的窗口句柄。The window handle of the message to send.

msg
Int32

要发送的 Win32 消息。The Win32 message to send.

wparam
IntPtr

要与消息一起发送的 wparamThe wparam to send with the message.

lparam
IntPtr

要与消息一起发送的 lparamThe lparam to send with the message.

返回

消息处理的结果,它依赖于所发送的消息。The result of the message processing, which is dependent on the message sent.

注解

当消息发送到通用对话框的所有者窗口时,将在此传输控件。Control is transferred here when messages are sent to the owner window of the common dialog box. 继承类可以重写此方法,以便向通用对话框添加特定功能。Inheriting classes can override this method to add specific functionality to a common dialog box.

适用于