update translations
extract drawing code into PaintHDC()