From 8f2c3ee9a0fb0457f81f4d70ad0077bf092b8a6a Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Mon, 11 Apr 2005 20:42:59 +0000 Subject: [PATCH] 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 --- src/msw/combobox.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 -- 2.45.2