Most Windows programs are controlled by "messages", signals which keep it up-to-date with what’s happening (you’ve moved the mouse) or tell it what to do: close down, perhaps. If you’re thinking "so ...