Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Remove all children from TopWindow/ParentCtrl
Remove all children from TopWindow/ParentCtrl [message #60056] Mon, 24 July 2023 21:59 Go to previous message
devilsclaw is currently offline  devilsclaw
Messages: 72
Registered: August 2022
Member
I tried something like this

void RemoveRecursivce(Upp::Ctrl *ctrl) {
  if(ctrl == NULL) {
    return;
  }
  for(Upp::Ctrl *_ctrl = ctrl->GetFirstChild(); _ctrl; _ctrl = ctrl->GetNext()) {
    RemoveRecursivce(_ctrl);
    if(_ctrl != NULL) {
      ctrl->RemoveChild(_ctrl);
    }
  }
}

[Updated on: Mon, 24 July 2023 22:02]

Report message to a moderator

 
Read Message
Read Message
Read Message
Previous Topic: plugin/FT_fontsys, plugin/DroidFonts
Next Topic: StringUnZip example needed
Goto Forum:
  


Current Time: Mon May 27 00:35:44 CEST 2024

Total time taken to generate the page: 0.01006 seconds