Merge window buffer branch. 

Implement a virtual paint to get the buffered DC of window.