Reparenting a window with SetParent in Windows should cause the child window being re-parented to be moved up to the topmost in the z-order, and WM_WINDOWPOSCHANGING and WM_WINDOWPOSCHANGED messages to be sent.