added a function to translate WM_ messages to text, for debugging