Dont set the background to transparent. Read this
Understanding OnPaint() article to better understand the drawing system.
You must return TRUE from
OnEraseBkground. Best is to drawn an own background color in it.
Be sure that no reload or nasty resizing is done. Only update needed controls directly. UpdateData is such a candidate.