The window procedure is responsible for handling all messages that are sent to a window. The
function prototype of WindowProc is given by: LRESULT CALLBACK WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) hwnd is a handle to the window to which the message was sent and uMsg identifies the actual message by its identifier, as specified in
winuser.h. wParam and lParam are parameters whose meaning depends on the message. An application should identify the message and take the required action. ==Default processing==