WindowProc

This function is an application-defined callback function that processes messages sent to a window.

At a Glance

Header file: Winuser.h
Windows CE versions: 1.0 and later

Syntax

LRESULT CALLBACK WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);

Parameters

hwnd

[in] Handle to the window.

uMsg

[in] Specifies the message.

wParam

[in] Specifies additional message information. The contents of this parameter depend on the value of the uMsg parameter.

lParam

[in] Specifies additional message information. The contents of this parameter depend on the value of the uMsg parameter.

Return Values

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

See Also

CallWindowProc, DefWindowProc, RegisterClass