Why is there such function CallWindowProc? We are supplying the address of the window procedure, so isn’t it better to call the function instead of calling another function which calls the function?
Why is there such function CallWindowProc? We are supplying the address of the window
Share
Because
GetWindowLong(orGetWindowLongPtr) might return a value that is not a function pointer, whichCallWindowProccan recognise and translate into a proper call. [1]