CommonDialog.HookProc Method (IntPtr, Int32, IntPtr, IntPtr)

 

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

Namespace:   Microsoft.Win32
Assembly:  PresentationFramework (in PresentationFramework.dll)

[SecurityCriticalAttribute]
protected virtual IntPtr HookProc(
	IntPtr hwnd,
	int msg,
	IntPtr wParam,
	IntPtr lParam
)

Parameters

hwnd
Type: System.IntPtr

Window handle for the Win32 dialog.

msg
Type: System.Int32

Windows message to be processed by the Win32 dialog.

wParam
Type: System.IntPtr

Parameters for dialog actions.

lParam
Type: System.IntPtr

Parameters for dialog actions.

Return Value

Type: System.IntPtr

Always returns Zero.

HookProc handles dialog initialization by centering the dialog window, relative to the screen, and to set focus to the default control.

.NET Framework
Available since 3.0
Return to top
Show: