Επεξεργασία

Κοινή χρήση μέσω


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

Definition

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

protected:
 virtual IntPtr HookProc(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam);
[System.Security.SecurityCritical]
protected virtual IntPtr HookProc (IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam);
protected virtual IntPtr HookProc (IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam);
[<System.Security.SecurityCritical>]
abstract member HookProc : nativeint * int * nativeint * nativeint -> nativeint
override this.HookProc : nativeint * int * nativeint * nativeint -> nativeint
abstract member HookProc : nativeint * int * nativeint * nativeint -> nativeint
override this.HookProc : nativeint * int * nativeint * nativeint -> nativeint
Protected Overridable Function HookProc (hwnd As IntPtr, msg As Integer, wParam As IntPtr, lParam As IntPtr) As IntPtr

Parameters

hwnd
IntPtr

nativeint

Window handle for the Win32 dialog.

msg
Int32

Windows message to be processed by the Win32 dialog.

wParam
IntPtr

nativeint

Parameters for dialog actions.

lParam
IntPtr

nativeint

Parameters for dialog actions.

Returns

IntPtr

nativeint

Always returns Zero.

Attributes

Remarks

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

Applies to