///////////////////////////////////////////////////////////////////////////////
-// Name: generic/vlbox.cpp
+// Name: src/generic/vlbox.cpp
// Purpose: implementation of wxVListBox
// Author: Vadim Zeitlin
// Modified by:
#if wxUSE_LISTBOX
+#include "wx/vlbox.h"
+
#ifndef WX_PRECOMP
#include "wx/settings.h"
#include "wx/dcclient.h"
+ #include "wx/listbox.h"
#endif //WX_PRECOMP
-#include "wx/vlbox.h"
#include "wx/dcbuffer.h"
#include "wx/selstore.h"
wxVListBox::~wxVListBox()
{
- delete m_doubleBuffer;
+ delete m_doubleBuffer;
delete m_selStore;
}
// it is, indeed, only partly visible, so scroll it into view to
// make it entirely visible
while ( (size_t)m_current == GetLastVisibleLine() &&
- ScrollToLine(GetVisibleBegin()+1) );
+ ScrollToLine(GetVisibleBegin()+1) ) ;
// but in any case refresh it as even if it was only partly visible
// before we need to redraw it entirely as its background changed
{
OnLeftDown(eventMouse);
}
-
+
}
}
// use the same default attributes as wxListBox
// ----------------------------------------------------------------------------
-#include "wx/listbox.h"
-
//static
wxVisualAttributes
wxVListBox::GetClassDefaultAttributes(wxWindowVariant variant)