diff --git a/include/wx/window.h b/include/wx/window.h index 5edeba5569..44a4084193 100644 --- a/include/wx/window.h +++ b/include/wx/window.h @@ -12,6 +12,10 @@ #ifndef _WX_WINDOW_H_BASE_ #define _WX_WINDOW_H_BASE_ +#ifdef __GNUG__ + #pragma interface "windowbase.h" +#endif + // ---------------------------------------------------------------------------- // headers which we must include here // ---------------------------------------------------------------------------- @@ -719,6 +723,10 @@ private: // contains the last id generated by NewControlId static int ms_lastControlId; + // no copy ctor/assignment operator + wxWindowBase(const wxWindowBase&); + wxWindowBase& operator=(const wxWindowBase&); + DECLARE_EVENT_TABLE() }; diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index fd7ded32ac..66390ee06f 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -17,6 +17,10 @@ // headers // ---------------------------------------------------------------------------- +#ifdef __GNUG__ + #pragma implementation "windowbase.h" +#endif + // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -78,7 +82,6 @@ END_EVENT_TABLE() void wxWindowBase::InitBase() { // no window yet, no parent nor children -// m_widget = (WXWidget)0; m_parent = (wxWindow *)NULL; m_windowId = -1; m_children.DeleteContents( FALSE ); // don't auto delete node data