NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

FontDialog.HookProc

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

[Visual Basic]
Overrides Protected Function HookProc( _
   ByVal hWnd As Integer, _
   ByVal msg As Integer, _
   ByVal wParam As Integer, _
   ByVal lParam As Integer _
) As Integer
[C#]
protected override int HookProc(
   int hWnd,
   int msg,
   int wParam,
   int lParam
);
[C++]
protected: override int HookProc(
   int hWnd,
   int msg,
   int wParam,
   int lParam
);
[JScript]
protected override function HookProc(
   hWnd : int,
   msg : int,
   wParam : int,
   lParam : int
) : int;

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.

Return Value

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

Raising an event invokes the event-handling method through a delegate. For an overview, see TBD.

Notes to Inheritors: When overriding HookProc in a derived class, be sure to call the base class's HookProc method.

See Also

FontDialog Class | FontDialog Members | System.WinForms Namespace | CommonDialog