wxTextCtrl does.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33528
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
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