Read up on the techniques in this article: Flicker-Free Displays Using an Off-Screen DC
Read some of the other peer aricles within the TOC pane on the left - GDI Overview, GDI Objects, etc...
Use MSDN as your reference for Win API functions like CreateCompatibleDC and BitBlt.

gg