[Bug 3637] dialog: no wm_paint message at first draw