add BeginPaint