Nice one.
One thing I guess concerning window event handling or so. When you compile it
using #define IN_OWN_WINDOW 1 - once the avi-playing window is in the
background - you have to resize / move it to see the actual avi again.
This doesn't occur with #define IN_OWN_WINDOW 0.
Anyway - great code as always, Jim!