This documentation is archived and is not being maintained.

CommonDialog.OwnerWndProc Method

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

[Visual Basic]
Protected Overridable Function OwnerWndProc( _
   ByVal hWnd As IntPtr, _
   ByVal msg As Integer, _
   ByVal wparam As IntPtr, _
   ByVal lparam As IntPtr _
) As IntPtr
[C#]
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
);
[JScript]
protected function OwnerWndProc(
   hWnd : IntPtr,
 msg : int,
 wparam : IntPtr,
 lparam : IntPtr
) : IntPtr;

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.

Return Value

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

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

CommonDialog Class | CommonDialog Members | System.Windows.Forms Namespace

Show: