Exemplo n.º 1
0
void Container::EnableChildren()
{
	for (std::vector< RefCountedPtr<Widget> >::iterator i = m_widgets.begin(); i != m_widgets.end(); ++i) {
		Widget *w = (*i).Get();
		w->SetDisabled(false);
		Container *c = dynamic_cast<Container*>(w);
		if (c) c->EnableChildren();
	}
}