+ if ( size.x == wxDefaultCoord || size.y == wxDefaultCoord )
+ {
+ wxSize sizeDefault = GetDefaultSize();
+ if ( size.x == wxDefaultCoord )
+ size.x = sizeDefault.x;
+ if ( size.y == wxDefaultCoord )
+ size.y = sizeDefault.y;
+ }
+
+ // for default positioning, centre the first top level window and
+ // cascade any addtional ones from there.
+ wxPoint pos = posOrig;
+ if ( pos.x == wxDefaultCoord || pos.y == wxDefaultCoord )