return begining of the selection for GetInsertionPoint to match what

wxTextCtrl does.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33528 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2005-04-11 20:42:59 +00:00
parent 98735f0027
commit 8f2c3ee9a0

View File

@ -667,11 +667,10 @@ void wxComboBox::SetInsertionPointEnd()
long wxComboBox::GetInsertionPoint() const
{
// CB_GETEDITSEL returns the index of the last character after selection in
// its high-order word
// CB_GETEDITSEL returns the index of the first character of the selection in
// its low-order word
DWORD pos= (DWORD)::SendMessage(GetHwnd(), CB_GETEDITSEL, 0, 0L);
return HIWORD(pos);
return LOWORD(pos);
}
wxTextPos wxComboBox::GetLastPosition() const