Check BeginPaint return value.
Improve focus a little bit.
Make devtools work again.