X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e6feb95a79834836e88143b15d9f424ebe79621..442b35b53bf95f5c6c003ea9ddbefd17adbc2a00:/include/wx/window.h?ds=sidebyside diff --git a/include/wx/window.h b/include/wx/window.h index 93818581c6..bbcd44aa98 100644 --- a/include/wx/window.h +++ b/include/wx/window.h @@ -953,15 +953,19 @@ private: // include the declaration of the platform-specific class #if defined(__WXMSW__) - #if !defined(__WXUNIVERSAL__) + #ifdef __WXUNIVERSAL__ + #define wxWindowNative wxWindowMSW + #else // !wxUniv #define wxWindowMSW wxWindow #define sm_classwxWindowMSW sm_classwxWindow - #endif // wxUniv + #endif // wxUniv/!wxUniv #include "wx/msw/window.h" #elif defined(__WXMOTIF__) #include "wx/motif/window.h" #elif defined(__WXGTK__) - #if !defined(__WXUNIVERSAL__) + #ifdef __WXUNIVERSAL__ + #define wxWindowNative wxWindowGTK + #else // !wxUniv #define wxWindowGTK wxWindow #define sm_classwxWindowGTK sm_classwxWindow #endif // wxUniv @@ -977,6 +981,10 @@ private: // for wxUniversal, we now derive the real wxWindow from wxWindow, // for the native ports we already have defined it above #if defined(__WXUNIVERSAL__) + #ifndef wxWindowNative + #error "wxWindowNative must be defined above!" + #endif + #include "wx/univ/window.h" #endif // wxUniv @@ -994,8 +1002,6 @@ inline wxWindow *wxWindowBase::GetGrandParent() const // global functions // ---------------------------------------------------------------------------- -WXDLLEXPORT extern wxWindow* wxGetActiveWindow(); - // Find the wxWindow at the current mouse position, also returning the mouse // position. WXDLLEXPORT extern wxWindow* wxFindWindowAtPointer(wxPoint& pt);