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
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.
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.
Like all callback functions, CCHookProc 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 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