In SWP_DoNCCalcSize() when determining whether the client area has moved, use the client coordinates as they are: not relative to its window coordinates.