A | B | C |  D | E | F |  G | H | I |  J | K | L |  M | N | O |  P | Q | R |  S | T | U |  V | W | X |  Y | Z



CallWindowProc

The CallWindowProc function passes message information to the specified window procedure.

VB4-32,5,6
Declare Function CallWindowProc Lib "user32" Alias "CallWindowProcA" (ByVal lpPrevWndFunc As Long, ByVal hWnd As Long, ByVal Msg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long

VB.NET
System.Windows.Forms.Form.WndProc

Operating Systems Supported
Requires Windows NT 3.1 or later; Requires Windows 95 or later

Library
User32

Parameter Information
- lpPrevWndFunc
Pointer to the previous window procedure.
If this value is obtained by calling the GetWindowLong function with the nIndex parameter set to GWL_WNDPROC or DWL_DLGPROC, it is actually either the address of a window or dialog box procedure, or a handle representing that address.

- hWnd
Identifies the window procedure to receive the message.

- Msg
Specifies the message.

- wParam
Specifies additional message-specific information. The contents of this parameter depend on the value of the Msg parameter.

- lParam
Specifies additional message-specific information. The contents of this parameter depend on the value of the Msg parameter.

Return Values
The return value specifies the result of the message processing and depends on the message sent.

Last update: 07 April 2006