void Component::repaint() { Container* pParent = (Container*)this->getParent(); // find top-level heavy-weight container, // and request it to repaint this object while( pParent ) { if ( pParent->isLightWeight() == FALSE ) { pParent->DoRepaintComponent( this ); break; } pParent = (Container*)pParent->getParent(); } }