DefWindowProc

This function calls the default window procedure to provide default processing for any window messages that an application does not process. This function ensures that every message is processed. DefWindowProc is called with the same parameters received by the window procedure.

At a Glance

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

Syntax

LRESULT DefWindowProc( HWND hWnd, UINT Msg, WPARAM wParam,
LPARAM
lParam );

Parameters

hWnd

[in] Handle to the window procedure that received the message.

Msg

[in] Specifies the message

wParam

[in] Specifies additional message information. The content of this parameter depends on the value of the Msg parameter.

lParam

[in] Specifies additional message information. The content of this parameter depends on the value of the Msg parameter.

Return Values

The return value is the result of the message processing and depends on the message. If Msg is WM_SETTEXT, zero is returned.

Remarks

DefWindowProc does not automatically call PostQuitMessage when it handles a WM_DESTROY message.

See Also

CallWindowProc, DefDlgProc, WindowProc