Example #1
0
void Container::DisableChildren()
{
	for (std::vector< RefCountedPtr<Widget> >::iterator i = m_widgets.begin(); i != m_widgets.end(); ++i) {
		Widget *w = (*i).Get();
		w->SetDisabled(true);
		Container *c = dynamic_cast<Container*>(w);
		if (c) c->DisableChildren();
	}
}