[This is preliminary documentation and is subject to change.]

The WindowProc function is an application-defined function that processes messages sent to a window. The WNDPROC type defines a pointer to this callback function. WindowProc is a placeholder for the application-defined function name.

Namespace: Tools.API.Messages
Assembly: Tools.Win (in Tools.Win.dll) Version: 1.5.3.38916 (1.5.3.38916)

Syntax

C#
public delegate int WndProc(
	IntPtr hWnd,
	WindowMessages msg,
	int wParam,
	int lParam
)
Visual Basic
Public Delegate Function WndProc ( _
	hWnd As IntPtr, _
	msg As WindowMessages, _
	wParam As Integer, _
	lParam As Integer _
) As Integer
Visual C++
public delegate int WndProc(
	IntPtr hWnd, 
	WindowMessages msg, 
	int wParam, 
	int lParam
)
F#
type WndProc = 
    delegate of 
        hWnd:IntPtr * 
        msg:WindowMessages * 
        wParam:int * 
        lParam:int -> int
JScript
JScript does not support delegates.

Parameters

hWnd
Type: System..::..IntPtr
Handle to the window.
msg
Type: Tools.API.Messages..::..WindowMessages
Specifies the message.
wParam
Type: System..::..Int32
Specifies additional message information. The contents of this parameter depend on the value of the uMsg parameter.
lParam
Type: System..::..Int32
Specifies additional message information. The contents of this parameter depend on the value of the uMsg parameter.

Return Value

The return value is the result of the message processing and depends on the message sent.

See Also