DefWindowProc 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 WINAPI DefWindowProc( _In_ HWND hWnd, _In_ UINT Msg, _In_ WPARAM wParam, _In_ LPARAM lParam );
Parameters
- hWnd [in]
-
Type: HWND
A handle to the window procedure that received the message.
- Msg [in]
-
Type: UINT
The message.
- wParam [in]
-
Type: WPARAM
Additional message information. The content of this parameter depends on the value of the Msg parameter.
- lParam [in]
-
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.
Examples
For an example, see Designing a Window Procedure.
Requirements
|
Minimum supported client |
Windows 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows 2000 Server [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|
|
Unicode and ANSI names |
DefWindowProcW (Unicode) and DefWindowProcA (ANSI) |
See also
- Reference
- CallWindowProc
- DefDlgProc
- WindowProc
- Conceptual
- Window Procedures