Windows API Guide: MEMORYSTATUSEX Structure


Public Function OFNHookProcOldStyle (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 OFNHookProcOldStyle hook function processes messages for an Open File or Save File common dialog box. This callback function works with file dialogs that do not have Windows Explorer-type extensions. For file dialogs with these extensions, use OFNHookProc 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 OFNHookProcOldStyle 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/ofnhookprocoldstyle.html



Windows API Guide
Windows API Guide - Reference - Volume 1: Version 3.0 For the MS-DOS and PC-DOS Operating Systems
ISBN: B001V0KQIY
EAN: N/A
Year: 1998
Pages: 610

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net