X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/afafd942a1f9d0f683a95bb72f8bc1e128543749..2fb18bf45bcf391a8eb973886072dc67893e9bbe:/src/msw/frame.cpp diff --git a/src/msw/frame.cpp b/src/msw/frame.cpp index 777f5ea1f6..c1904ead5c 100644 --- a/src/msw/frame.cpp +++ b/src/msw/frame.cpp @@ -17,10 +17,6 @@ // headers // ---------------------------------------------------------------------------- -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma implementation "frame.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -47,9 +43,9 @@ #endif #if defined(__POCKETPC__) || defined(__SMARTPHONE__) -#include "wx/msw/ole/oleutils.h" -#include -#include "wx/msw/winundef.h" + #include + #include + #include "wx/msw/winundef.h" #endif #if wxUSE_STATUSBAR @@ -211,14 +207,14 @@ bool wxFrame::Create(wxWindow *parent, SetLeftMenu(wxID_EXIT, _("Done")); #endif -#if defined(__POCKETPC__) +#if wxUSE_ACCEL && defined(__POCKETPC__) // The guidelines state that Ctrl+Q should quit the app. // Let's define an accelerator table to send wxID_EXIT. wxAcceleratorEntry entries[1]; entries[0].Set(wxACCEL_CTRL, 'Q', wxID_EXIT); wxAcceleratorTable accel(1, entries); SetAcceleratorTable(accel); -#endif +#endif // wxUSE_ACCEL && __POCKETPC__ return true; } @@ -692,7 +688,7 @@ void wxFrame::IconizeChildFrames(bool bIconize) wxFrame *frame = wxDynamicCast(win, wxFrame); if ( frame #if wxUSE_MDI_ARCHITECTURE - && !IsMDIChild() + && !frame->IsMDIChild() #endif // wxUSE_MDI_ARCHITECTURE ) {