Search code examples
c++wxwidgets

wxWidgets wxSpinCtrl incomplete type


I'm confused in my header I specify a member wxSpinCtrl * spinControl and when I do like so in the constructor spinControl = new wxSpinCtrl(this, wxID_ANY); I receive a error: invalid use of incomplete type ‘class wxSpinCtrl’. No other control I have used in wxWidgets so far has had this problem. Is there something special about this class


Solution

  • There is nothing special about it but you do need to #include <wx/spinctrl.h> before using it.