add buttons and handle dirty rect
double buffer paint
handle mouse double click msg
fix bug of dirty drawing