System.Windows.Forms.CommonDialog.OwnerWndProc Method

Defines the owner window procedure that is overridden to add specific functionality to a common dialog box.

Syntax

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

Parameters

hWnd
The window handle of the message to send.
msg
The Win32 message to send.
wparam
The wparam to send with the message.
lparam
The lparam to send with the message.

Returns

The result of the message processing, which is dependent on the message sent.

Remarks

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.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0