#if wxUSE_SPINBTN
+#include "wx/compositewin.h"
+
class WXDLLIMPEXP_FWD_CORE wxSpinButton;
class WXDLLIMPEXP_FWD_CORE wxTextCtrl;
// function ambiguity.
// ----------------------------------------------------------------------------
-class WXDLLIMPEXP_CORE wxSpinCtrlGenericBase : public wxSpinCtrlBase
+class WXDLLIMPEXP_CORE wxSpinCtrlGenericBase
+ : public wxCompositeWindow<wxSpinCtrlBase>
{
public:
wxSpinCtrlGenericBase() { Init(); }
protected:
// override the base class virtuals involved into geometry calculations
virtual wxSize DoGetBestSize() const;
+ virtual wxSize DoGetSizeFromTextSize(int xlen, int ylen = -1) const;
virtual void DoMoveWindow(int x, int y, int width, int height);
#ifdef __WXMSW__
// common part of all ctors
void Init();
+ // Implement pure virtual function inherited from wxCompositeWindow.
+ virtual wxWindowList GetCompositeWindowParts() const;
+
DECLARE_EVENT_TABLE()
};