The 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.
LRESULT DefWindowProc(
HWND hWnd, |
// handle to window |
UINT Msg, |
// message identifier |
WPARAM wParam, |
// first message parameter |
LPARAM lParam |
// second message parameter |
); |
The return value is the result of the message processing and depends on the message.