I haven't worked in windowed mode with DirectX ... but from the demos, tutorials, and posts I've seen, you can't attach a backbuffer the way you do with fullscreen mode.

Instead, you create a surface the same size as your primary display area, blit everything to that, then do one big blit from the hidden surface to your primary.

-Bryk