The code bitblt to the DC that pDC points to. Is that the device context of the surface you want to draw?

Kuphryn