#include <ngscan.h>
Inheritance diagram for CreateDisplayScan::FoldGroupIfEmpty:
Private Member Functions | |
virtual BOOL | Do (SGNameGroup *) |
Folds groups which have no items. |
Definition at line 432 of file ngscan.h.
|
Folds groups which have no items.
Implements NameGroupIter. Definition at line 1385 of file ngscan.cpp. 01386 { 01387 // Is the group item-less and unfolded? 01388 if (pGroup->GetChild() == 0 && !pGroup->Flags.Folded) 01389 { 01390 // Remember to unfold this group as soon as it has items again. But if the user 01391 // has folded the group deliberately then we don't interfere with it. 01392 pGroup->Flags.Reserved |= 1; 01393 pGroup->Flags.Folded = TRUE; 01394 } 01395 01396 return TRUE; 01397 }
|