Otherwise it won't compile... jesus it took me about 2 days to find that out ...
Yes. That is because .lay uses real classes.
Anyway, you can have in layout even class that is not defined yet. Just leave the classname field empty and add it as member into your class.
Quote:
My Window doesn't paint any backround. Is there a method to paint the backround automatically without drawing a rectangle in the "Paint" function?
No. Use DrawRect(GetSize(), White()). (Note that setting color of background would be done in sigle line - just as is drawing actual background in Draw).