mod/maxgui.mod/fltkmaxgui.mod/src/Fl_Tree.cxx
int Fl_Tree::deselect_all(Fl_Tree_Item *item, int docallback) {
  item = item ? item : first();			// NULL? use first()
  if ( ! item ) return(0);
  int count = 0;
  for ( ; item; item = next(item) ) {
    if ( item->is_selected() )
      if ( deselect(item, docallback) )
        ++count;
  }
  return(count);
}
/// Deselect \p item and all its children.
/// If item is NULL, first() is used.
/// Handles calling redraw() if anything was changed.
/// Invokes the callback depending on the value of optional parameter \p docallback.
///
/// The callback can use callback_item() and callback_reason() respectively to determine 
/// the item changed and the reason the callback was called.
///
/// \param[in] item The item that will be deselected (along with all its children)
/// \param[in] docallback -- A flag that determines if the callback() is invoked or not:
///     -   0 - the callback() is not invoked
///     -   1 - the callback() is invoked for each item that changed state,
///             callback_reason() will be FL_TREE_REASON_DESELECTED
///
/// \returns count of how many items were actually changed to the deselected state.
///
Deselect \p item and all its children.
If item is NULL, first() is used.
Handles calling redraw() if anything was changed.
Invokes the callback depending on the value of optional parameter \p docallback.

The callback can use callback_item() and callback_reason() respectively to determine
the item changed and the reason the callback was called.

\param[in] item The item that will be deselected (along with all its children)
\param[in] docallback -- A flag that determines if the callback() is invoked or not:
0 - the callback() is not invoked
1 - the callback() is invoked for each item that changed state,
callback_reason() will be FL_TREE_REASON_DESELECTED

\returns count of how many items were actually changed to the deselected state.
Deselect \ p item and all its children . If item is NULL first () is used . Handles calling redraw () if anything was changed . Invokes the callback depending on the value of optional parameter \ p docallback . The callback can use callback_item () and callback_reason () respectively to determine the item changed and the reason the callback was called . \ param [ in ] item The item that will be deselected ( along with all its children ) \ param [ in ] docallback -- A flag that determines if the callback () is invoked or not : 0 - the callback () is not invoked 1 - the callback () is invoked for each item that changed state callback_reason () will be FL_TREE_REASON_DESELECTED \ returns count of how many items were actually changed to the deselected state .
int Fl_Tree::deselect_all(Fl_Tree_Item *item, int docallback) {
  item = item ? item : first();			
  if ( ! item ) return(0);
  int count = 0;
  for ( ; item; item = next(item) ) {
    if ( item->is_selected() )
      if ( deselect(item, docallback) )
        ++count;
  }
  return(count);
}
int Fl_Tree :: deselect_all ( Fl_Tree_Item * item , int docallback ) { item = item ? item : first ( ) ; if ( ! item ) return ( 0 ) ; int count = 0 ; for ( ; item ; item = next ( item ) ) { if ( item -> is_selected ( ) ) if ( deselect ( item , docallback ) ) ++ count ; } return ( count ) ; }
Deselect \p item and all its children.
Deselect \ p item and all its children .
// NULL? use first()