Public Function CFHookProc(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
CFHookProc is used to process a Choose Font common dialog box's messages. This hook function allows a program to write its own code to process messages otherwise handled by the Choose Font box. The function does not have to be named CFHookProc -- that is merely the name given to it in discussions about the API.
If the function returns 0, the Choose Font dialog box's default message handler processes the message. If the function returns a non-zero value, the Choose Font dialog box's default message handler does not receive the message.
Like all callback functions, CFHookProc must be declared Public and be defined in a module.
Go back to the Callback Function listing.
Go back to the Reference section index.
Last Modified: August 19, 1999
This page is copyright © 1999 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/c/cfhookproc.html