prepare for setwindowparent