DefWindowProc

  LRESULT DefWindowProc(hwnd, uMsg, wParam, lParam)    
  HWND hwnd; /* handle of window */
  UINT uMsg; /* type of message */
  WPARAM wParam; /* first message parameter */
  LPARAM lParam; /* second message parameter */

The DefWindowProc function calls the default window procedure. The default window procedure provides default processing for any window messages that an application does not process. This function ensures that every message is processed. It should be called with the same parameters as those received by the window procedure.

Parameters

hwnd

Identifies the window that received the message.

uMsg

Specifies the message to be processed.

wParam

Specifies additional message-dependent information.

lParam

Specifies additional message-dependent information.

Return Value

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

See Also

DefDlgProc