CommonDialog.HookProc(IntPtr, Int32, IntPtr, IntPtr) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.