DefWindowProcA 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.

Syntax

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

Parameters

hWnd

Type: HWND

A handle to the window procedure that received the message.

Msg

Type: UINT

The message.

wParam

Type: WPARAM

Additional message information. The content of this parameter depends on the value of the Msg parameter.

lParam

Type: LPARAM

Additional message information. The content of this parameter depends on the value of the Msg parameter.

Return Value

Type: Type: LRESULT

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

Requirements

   
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header winuser.h (include Windows.h)
Library User32.lib
DLL User32.dll

See Also

CallWindowProc

Conceptual

DefDlgProc

Reference

Window Procedures

WindowProc