diff --git a/include/wx/univ/listbox.h b/include/wx/univ/listbox.h index 07bbd27a55..b5c6cc2c21 100644 --- a/include/wx/univ/listbox.h +++ b/include/wx/univ/listbox.h @@ -167,11 +167,9 @@ public: long numArg = 0l, const wxString& strArg = wxEmptyString); - // let wxColourScheme choose the right colours for us - virtual bool IsContainerWindow() const { return TRUE; } - // idle processing virtual void OnInternalIdle(); + protected: // geometry virtual wxSize DoGetBestClientSize() const; diff --git a/include/wx/univ/textctrl.h b/include/wx/univ/textctrl.h index adcbc90209..444962d382 100644 --- a/include/wx/univ/textctrl.h +++ b/include/wx/univ/textctrl.h @@ -252,8 +252,7 @@ public: virtual void CalcUnscrolledPosition(int x, int y, int *xx, int *yy) const; virtual void CalcScrolledPosition(int x, int y, int *xx, int *yy) const; - // set the right colours and border - virtual bool IsContainerWindow() const { return TRUE; } + // ensure we have correct default border virtual wxBorder GetDefaultBorder() const { return wxBORDER_SUNKEN; } // perform an action diff --git a/include/wx/univ/window.h b/include/wx/univ/window.h index 7c5ee59230..01115c15f3 100644 --- a/include/wx/univ/window.h +++ b/include/wx/univ/window.h @@ -142,11 +142,6 @@ public: // controls only virtual bool IsCanvasWindow() const { return FALSE; } - // return TRUE if this a container window which contains the other items: - // e.g, a listbox, listctrl, treectrl, ... and FALSE if it is a monolithic - // control (e.g. a button, checkbox, ...) - virtual bool IsContainerWindow() const { return FALSE; } - // returns TRUE if the control has "transparent" areas such // as a wxStaticText and wxCheckBox and the background should // be adapted from a parent window