Public Function WindowProc (ByVal hwnd As Long, ByVal uMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
' application-defined code goes here
End Function
The WindowProc hook function acts as the window procedure of a window. The window procedure processes all of the messages received by that window. The function does not actually have to be named WindowProc; that is just the name given to it in discussions about the API.
The return value depends on the requirements of the message being processed.
Like all callback functions, WindowProc must be declared Public and be defined in a module.
CallWindowProc, GetClassLong, GetWindowLong, SetClassLong, SetWindowLong, WNDCLASS, WNDCLASSEX
Go back to the Callback Function listing.
Go back to the Reference section index.
Last Modified: August 22, 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/w/windowproc.html