Move event generation code for multiple selection mode to common code

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53715 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2008-05-23 10:12:50 +00:00
parent 794b89c956
commit 05d790f834
4 changed files with 117 additions and 107 deletions

View File

@@ -94,6 +94,11 @@ public:
// returns the item number at a point or wxNOT_FOUND
int HitTest(const wxPoint& point) const { return DoListHitTest(point); }
// For generating events in multiple and extended mode
wxArrayInt m_oldSelections;
void UpdateOldSelections();
void CalcAndSendEvent();
protected:
virtual void DoSetFirstItem(int n) = 0;