Support for WM_PAINT in windows

WIndows needs the WM_PAINT message to be emitted as an event so the window can be redrawn when exposed by another.