OFNHookProc Callback Function

Public Function OFNHookProc (ByVal hdlg As Long, ByVal uiMsg As Long, ByVal wParam As Long, _
		ByVal lParam As Long) As Long
	' Application-defined code goes here.
End Function

Description & Usage

The OFNHookProc hook function processes messages for an Open File or Save File common dialog box. This callback function works with file dialogs that have Windows Explorer-type extensions. For file dialogs without these extensions, use OFNHookProcOldStyle instead.

Return Value

If the function returns zero, the default file dialog message handler processes the message. If the function returns a nonzero value, the default file dialog message handler ignores the message.

Visual Basic-Specific Issues

Like most callback functions, this function must be Public and be defined in a module. It does not need to be named OFNHookProc in your program -- that is the name given to it in discussions about the API.

Parameters

hdlg
A handle to the file dialog's child window. Use GetParent to get a handle to the actual file dialog box.
uiMsg
The identifier of the message to process.
wParam
The first message parameter.
lParam
The second message parameter.

Used By

OPENFILENAME

Back to the Callback Function list.
Back to the Reference section.


Last Modified: September 24, 2000
This page is copyright © 2000 Paul Kuliniewicz. Copyright Information Revised October 29, 2000
Go back to the Windows API Guide home page.
E-mail: vbapi@vbapi.com Send Encrypted E-Mail
This page is at http://www.vbapi.com/ref/o/ofnhookproc.html