System.Windows.Forms.FontDialog.HookProc Method

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

Syntax

protected override IntPtr HookProc (IntPtr hWnd, int msg, IntPtr wparam, IntPtr lparam)

Parameters

hWnd
The handle to the dialog box window.
msg
The message being received.
wparam
Additional information about the message.
lparam
Additional information about the message.

Returns

A zero value if the default dialog box procedure processes the message; a nonzero value if the default dialog box procedure ignores the message.

Remarks

A hook procedure is a mechanism by which a function can intercept events before they reach an application. When you override the CommonDialog.HookProc(IntPtr, int, IntPtr, IntPtr) method for a System.Windows.Forms.CommonDialog class, the operating system invokes your override of the function to post operating system messages to the window.

Requirements

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