Well, technically, the z orders would never be equal, I don't think, but when one of the windows is activated, you can can SetForegroundWindow on the other, bringing it to the front, then call it again for the window that was activated. Then they will both be on the top.