fixed bug with window messages not being processed properly in the graphics capture hook