There is a message. Why isn't there a message?
Because you can easily figure that out for yourself.
When you receive a message, set a flag that says, "The
mouse is outside the window." When you receive a message
and the flag is set, then the mouse has entered the window. (...