X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0ae0bb792b13e17c62610245111c3ce7bf254464..1a33ac8fb0f5e43c89bd698618d554c6f7b8b452:/include/wx/ctrlsub.h diff --git a/include/wx/ctrlsub.h b/include/wx/ctrlsub.h index d286d874f1..13cb2abf08 100644 --- a/include/wx/ctrlsub.h +++ b/include/wx/ctrlsub.h @@ -31,7 +31,7 @@ class WXDLLEXPORT wxItemContainer { public: - wxItemContainer() { m_clientDataItemsType = wxClientData_None; } + wxItemContainer(); virtual ~wxItemContainer(); // adding items @@ -140,7 +140,7 @@ protected: class WXDLLEXPORT wxControlWithItems : public wxControl, public wxItemContainer { public: - wxControlWithItems() { } + wxControlWithItems(); virtual ~wxControlWithItems(); // we have to redefine these functions here to avoid ambiguities in classes @@ -150,6 +150,10 @@ public: // this wxCONTROL_ITEMCONTAINER_CLIENTDATAOBJECT_RECAST + // usually the controls like list/combo boxes have their own background + // colour + virtual bool ShouldInheritColours() const { return false; } + private: DECLARE_NO_COPY_CLASS(wxControlWithItems) };