Does anyone know of a way to paint a rectangle similar to the type thats drawn when you reposition a tool window in windows.

My problem is that you need to know which graphics context to draw it on, and what do you do if it spans multiple hdc's?

thanks