X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/58654ed0f2b9f7888c80840ce3d526c98a9bf05f..fc7840aa33c00b255ca088bd81c195835ac67419:/include/wx/window.h diff --git a/include/wx/window.h b/include/wx/window.h index 44a4084193..e801a29cf5 100644 --- a/include/wx/window.h +++ b/include/wx/window.h @@ -37,7 +37,7 @@ class WXDLLEXPORT wxClientData; class WXDLLEXPORT wxControl; class WXDLLEXPORT wxCursor; -class WXDLLEXPORT wxDc; +class WXDLLEXPORT wxDC; class WXDLLEXPORT wxDropTarget; class WXDLLEXPORT wxItemResource; class WXDLLEXPORT wxLayoutConstraints; @@ -156,7 +156,7 @@ public: // label is just the same as the title (but for, e.g., buttons it // makes more sense to speak about labels) - wxString GetLabel() const { return GetTitle(); } + virtual wxString GetLabel() const { return GetTitle(); } // the window name is used for ressource setting in X, it is not the // same as the window title/label @@ -170,7 +170,7 @@ public: // generate a control id for the controls which were not given one by // user - static int NewControlId() { return ++ms_lastControlId; } + static int NewControlId() { return --ms_lastControlId; } // moving/resizing // --------------- @@ -723,10 +723,7 @@ 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_NO_COPY_CLASS(wxWindowBase); DECLARE_EVENT_TABLE() };