Microsoft Windows CE 3.0  

DefWindowProc

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

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. DefWindowProcis called with the same parameters received by the window procedure.

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 Msgparameter.
lParam
[in] Specifies additional message information. The content of this parameter depends on the value of the Msgparameter.

Return Values

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

Remarks

DefWindowProcdoes not automatically call PostQuitMessagewhen it handles a WM_DESTROY message.

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 1.0 and later Winuser.h    
Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

CallWindowProc, DefDlgProc, WindowProc