Override wxTextEntry::GetSelection(long *from, long *to) in wxOwnerDrawnComboBox to resolve virtual method hiding issues

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66386 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jaakko Salli 2010-12-16 18:07:05 +00:00
parent fda6279358
commit 9ff4b6ccd9
2 changed files with 10 additions and 0 deletions

View File

@ -316,6 +316,11 @@ public:
virtual int FindString(const wxString& s, bool bCase = false) const;
virtual void Select(int n);
virtual int GetSelection() const;
// Override this just to maintain consistency with virtual methods
// between classes.
virtual void GetSelection(long *from, long *to) const;
virtual void SetSelection(int n) { Select(n); }

View File

@ -1070,6 +1070,11 @@ int wxOwnerDrawnComboBox::GetSelection() const
return GetVListBoxComboPopup()->GetSelection();
}
void wxOwnerDrawnComboBox::GetSelection(long *from, long *to) const
{
return wxComboCtrl::GetSelection(from, to);
}
int wxOwnerDrawnComboBox::DoInsertItems(const wxArrayStringsAdapter& items,
unsigned int pos,
void **clientData,