Make sure that WM_NCPAINT messages are generated by calling BeginPaint