fix WMeasurePaintDevice not properly initializing underlying device