X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a12546634d8d190b4b1503c5d6533971b26e5862..1d63de4a455bde7bad81cb34724cb1df3219cd26:/src/msw/combobox.cpp diff --git a/src/msw/combobox.cpp b/src/msw/combobox.cpp index c15da2ee31..90f5da5765 100644 --- a/src/msw/combobox.cpp +++ b/src/msw/combobox.cpp @@ -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