#ifndef WX_PRECOMP
#include "wx/log.h"
+ #include "wx/menu.h"
#endif
-#include "wx/menu.h"
#include "wx/settings.h"
#include "wx/mac/private.h"
m_clientWindow = NULL;
m_currentChild = NULL;
m_windowMenu = (wxMenu*) NULL;
- m_parentFrameActive = TRUE;
+ m_parentFrameActive = true;
}
bool wxMDIParentFrame::Create(wxWindow *parent,
- wxWindowID id,
- const wxString& title,
- const wxPoint& pos,
- const wxSize& size,
- long style,
- const wxString& name)
+ wxWindowID id,
+ const wxString& title,
+ const wxPoint& pos,
+ const wxSize& size,
+ long style,
+ const wxString& name)
{
m_clientWindow = NULL;
m_currentChild = NULL;
}
wxFrame::Create( parent , id , title , pos , size , style , name ) ;
- m_parentFrameActive = TRUE;
+ m_parentFrameActive = true;
OnCreateClient();
- return TRUE;
+ return true;
}
wxMDIParentFrame::~wxMDIParentFrame()
{
SetName(name);
- if ( id > -1 )
+ if ( id != wxID_ANY )
m_windowId = id;
else
m_windowId = (int)NewControlId();
SetThemeWindowBackground( (WindowRef) m_macWindow , m_macWindowBackgroundTheme , false ) ;
wxModelessWindows.Append(this);
- return FALSE;
+ return false;
}
wxMDIChildFrame::~wxMDIChildFrame()
m_backgroundColour = wxSystemSettings::GetColour(wxSYS_COLOUR_APPWORKSPACE);
wxModelessWindows.Append(this);
- return TRUE;
+ return true;
}
// Get size *available for subwindows* i.e. excluding menu bar.