CCHookProc Callback Function

Public Function CCHookProc(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

CCHookProc is used to process a Choose Color common dialog box's messages. This hook function allows a program to write its own code to process messages otherwise handled by the Choose Color box. The function does not have to be named CCHookProc -- that is merely the name given to it in discussions about the API.

Return Value

If the function returns 0, the Choose Color dialog box's default message handler processes the message. If the function returns a non-zero value, the Choose Color dialog box's default message handler does not receive the message.

Visual Basic-Specific Issues

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

Parameters

hdlg
A handle to the Choose Color 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

CHOOSECOLOR_TYPE

Go back to the Callback Function listing.
Go back to the Reference section index.


Last Modified: August 14, 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/cchookproc.html