part of patch [ 649438 ] Bug fixes from Netscape/AOL
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30626 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -607,5 +607,19 @@ void wxComboBox::SetSelection(long from, long to)
|
||||
}
|
||||
}
|
||||
|
||||
void wxComboBox::GetSelection(long* from, long* to) const
|
||||
{
|
||||
DWORD dwStart, dwEnd;
|
||||
::SendMessage(GetHwnd(), CB_GETEDITSEL, (WPARAM)&dwStart, (LPARAM)&dwEnd);
|
||||
|
||||
*from = dwStart;
|
||||
*to = dwEnd;
|
||||
}
|
||||
|
||||
int wxComboBox::GetSelection() const
|
||||
{
|
||||
return wxChoice::GetSelection();
|
||||
}
|
||||
|
||||
#endif // wxUSE_COMBOBOX
|
||||
|
||||
|
Reference in New Issue
Block a user