DefWindowProc

Syntax

LONG DefWindowProc(hWnd,wMsg,wParam,lParam)

This function provides default processing for any Windows messages that a given application does not process. All window messages that are not explicitly processed by the class window function must be passed to the DefWindowProc function.

Parameter Type/Description  

hWnd HWND Identifies the window that passes the message.  
wMsg WORD Specifies the message number.  
wParam WORD Specifies 16 bits of additional message-dependent information.  
lParam DWORD Specifies 32 bits of additional message-dependent information.  

Return Value

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

Comments

The source code for the DefWindowProc function is provided on the SDK disks.