As you may know, SetParent doesn't allow you to switch the parent if the handle has the WS_CHILD style in it. So how can this be done?
umm LOL, Doesn't work. Obviously I've tried that. It doesn't work if the window has the WS_CHILD property. Didn't you read what I wrote.
Can you test for and change the WS_CHILD style (Get/SetWindowLong) and then use SetParent?