Definition: Processing Windows Messages
After the PreprocessingMessage method selection, the message is passed to WinProc processing. WinProc and WindowProc are completely correct.
The following example demonstrates system information to override WinProc to process the Message flag. This example processes the WM_ACTIVATEAPP operating system message to find out when another application is activated