- if ( appframe.origin.y != 0 )
- {
- double offset = appframe.origin.y;
- frame.origin.y -= offset;
- frame.size.height += offset;
- }
- else if ( appframe.origin.x != 0 )
- {
- double offset = appframe.origin.x;
- frame.origin.x -= offset;
- frame.size.width += offset;
- }
- else if ( appframe.size.height < bounds.size.height )
- {
- frame.size.height = bounds.size.height;
- }
- else if ( appframe.size.width < bounds.size.width )
- {
- frame.size.width = bounds.size.width;
- }
-
- [self.view setFrame:frame];
+ wxShowEvent eventShow(now->GetId(), false);
+ eventShow.SetEventObject(now);
+
+ now->HandleWindowEvent(eventShow);