compilation fix after wxScrollHelper changes (ctor argument is now not optional and SetWin doesn't exist any more)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35927 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2005-10-18 11:13:34 +00:00
parent 6694ee19fc
commit afe1376994
2 changed files with 3 additions and 3 deletions

View File

@@ -52,7 +52,7 @@ class WXDLLEXPORT wxListBox : public wxListBoxBase, public wxScrollHelper
{
public:
// ctors and such
wxListBox() { Init(); }
wxListBox() : wxScrollHelper(this) { Init(); }
wxListBox(wxWindow *parent,
wxWindowID id,
const wxPoint& pos = wxDefaultPosition,
@@ -61,6 +61,7 @@ public:
long style = 0,
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxListBoxNameStr )
: wxScrollHelper(this)
{
Init();

View File

@@ -84,6 +84,7 @@ wxListBox::wxListBox(wxWindow *parent,
long style,
const wxValidator& validator,
const wxString &name)
:wxScrollHelper(this)
{
Init();
@@ -135,8 +136,6 @@ bool wxListBox::Create(wxWindow *parent,
validator, name) )
return false;
SetWindow(this);
m_strings = new wxArrayString;
Set(n, choices);