WndProc
WndProc is the window procedure in the Win32 API. It is a callback function that processes messages for a window. The system calls the window procedure with a message identifier and parameters describing the message. The function is defined with the signature LRESULT CALLBACK WndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) and is supplied when registering a window class via WNDCLASS or WNDCLASSEX (lpfnWndProc).
Messages represent events or requests such as creation, painting, destruction, resizing, keyboard input, mouse input, or
Window procedures can be customized for different window classes; developers may subclass an existing window by