under the bonnet what windows does!
when an event happens - added to a queue
when your program is ‘active’
- Windows takes event from queue
- then calls appropriate bit of your program
- when it returns, if there is enough time - repeat
-
- N.B. slightly different for different event types