// TODO
}
+bool wxMDIParentFrame::Show( bool show )
+{
+ if ( !wxFrame::Show(show) )
+ return false;
+
+ // don't really show the MDI frame unless it has any children other than
+ // MDI children as it is pretty useless in this case
+ if ( show )
+ {
+ // TODO: check for other children
+ Move(-10000, -10000);
+ }
+
+ return true;
+}
+
// Child frame
wxMDIChildFrame::wxMDIChildFrame()
bool wxMDIClientWindow::CreateClient(wxMDIParentFrame *parent, long style)
{
-
- m_windowId = (int)NewControlId();
-
- if ( parent )
- {
- parent->AddChild(this);
- }
- m_backgroundColour = wxSystemSettings::GetColour(wxSYS_COLOUR_APPWORKSPACE);
+ if ( !wxWindow::Create(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, style))
+ return FALSE;
wxModelessWindows.Append(this);
return TRUE;