DocumentWindow::resized() : impossible overload

when I code a class inheriting from DocumentWindow, I get much troubles with overloading “resized”, would you help ?

myclass:resized(){ DocumentWindow::resized(); myComp->setBounds(0,0,val1,val2); };
does not rule.

Does someone know why ?

Maybe “myComp” is the window’s content component? If so, you should let the window manage its size.

“mycomp” is an added component.

Ok, well I’m afraid my psychic powers aren’t strong enough to know what’s wrong.

Well, shame on me, i had forgotten the “element(0)” spec :

[code]MyClass:MyClass : public MotherClass, element1(0), element2(0)…
{

};
[/code]

And that’s all

thank you for your patience.