so what something like

Code:
long styles;
styles = GetWindowLong(child,GWL_STYLE);
styles &= ~WS_CHILD;
SetWindowLong(child,GWL_STYLE,styles);


I'll give it a shot but theres no garuntee I always use setparent to make a window a desktop window.