X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/065e208ec09e3d08d51d9604497f92f53c210f93..1a1f3e4b53fd5d1515b16905edf4250dfb2fc676:/src/cocoa/mdi.mm?ds=sidebyside diff --git a/src/cocoa/mdi.mm b/src/cocoa/mdi.mm index 40dfa87d69..ef279856ca 100644 --- a/src/cocoa/mdi.mm +++ b/src/cocoa/mdi.mm @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: cocoa/mdi.mm +// Name: src/cocoa/mdi.mm // Purpose: wxMDIParentFrame, wxMDIChildFrame, wxMDIClientWindow // Author: David Elliott // Modified by: @@ -10,9 +10,13 @@ ///////////////////////////////////////////////////////////////////////////// #include "wx/wxprec.h" + +#if wxUSE_MDI + +#include "wx/mdi.h" + #ifndef WX_PRECOMP #include "wx/log.h" - #include "wx/mdi.h" #endif // WX_PRECOMP // #include "wx/cocoa/autorelease.h" @@ -23,7 +27,7 @@ // #import // #import -#include +#include "wx/listimpl.cpp" WX_DEFINE_LIST(wxCocoaMDIChildFrameList); WX_DECLARE_HASH_MAP(int, wxMDIChildFrame*, wxIntegerHash, wxIntegerEqual, wxIntMDIChildFrameHashMap); @@ -320,7 +324,7 @@ wxMDIClientWindow::wxMDIClientWindow() } wxMDIClientWindow::wxMDIClientWindow(wxMDIParentFrame *parent, long style) -: wxWindow(parent, -1) + :wxWindow(parent, wxID_ANY) { } @@ -333,3 +337,4 @@ bool wxMDIClientWindow::CreateClient( wxMDIParentFrame *parent, long style) return false; } +#endif