#include "wx/wxprec.h"
#ifdef __BORLANDC__
-#pragma hdrstop
+ #pragma hdrstop
#endif
#if wxUSE_LISTCTRL
#ifndef WX_PRECOMP
- #include "wx/app.h"
#include "wx/dynarray.h"
+ #include "wx/app.h"
#include "wx/dcscreen.h"
#include "wx/textctrl.h"
#endif
{
protected:
wxListMainWindow *m_owner;
- wxCursor *m_currentCursor;
+ const wxCursor *m_currentCursor;
wxCursor *m_resizeCursor;
bool m_isDragging;
void wxListMainWindow::OnScroll(wxScrollWinEvent& event)
{
- int cw, ch, vw, vh;
- GetVirtualSize(&vw, &vh);
- GetClientSize(&cw, &ch);
-
- if ( event.GetOrientation() == wxVERTICAL && ch >= vh )
- return;
-
// update our idea of which lines are shown when we redraw the window the
// next time
ResetVisibleLinesRange();