Combine the regions returned by BeginPaint and GetUpdateRect.
Attach a file by drag & drop or click to upload