fix  save the HWN of the window fail issue.

Also redraw the window when capture it's client area.