void RemoveRecursivce(Upp::Ctrl *ctrl) { if(ctrl == NULL) { return; } while(ctrl->GetChildCount()) { Upp::Ctrl *tctrl = ctrl->GetIndexChild(ctrl->GetChildCount() - 1); if(tctrl->GetChildCount()) { RemoveRecursivce(tctrl); } else { ctrl->RemoveChild(tctrl); } } }
Report message to a moderator