Windows API Guide: auxGetDevCaps Function


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

Description & Usage

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.

Return Value

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.

Visual Basic-Specific Issues

Like all callback functions, CFHookProc must be declared Public and be defined in a module.

Parameters

hdlg
A handle to the Choose Font dialog box which the message is for.
uiMsg
The message to be acted upon.
wParam
Additional information about the message.
lParam
Additional information about the message.

Used By

CHOOSEFONT_TYPE

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



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