Unfortunately using SetParent() results in a number of side-effects, so I would not recommend it. mIRC never uses SetParent() and instead recreates the entire window whenever you move it between mIRC and the desktop.