X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8e25c1981bae103b15a8d4df6fa8eb8724218ba0..a3669332df65cfae18e7540a267bc3400a64aa09:/src/msw/combobox.cpp diff --git a/src/msw/combobox.cpp b/src/msw/combobox.cpp index 8b1841fb2e..512a567e99 100644 --- a/src/msw/combobox.cpp +++ b/src/msw/combobox.cpp @@ -199,7 +199,7 @@ LRESULT APIENTRY _EXPORT wxComboEditWndProc(HWND hWnd, { wxCHECK_MSG( win, 0, _T("should have a parent") ); - if ( win->GetWindowStyle() & wxPROCESS_ENTER ) + if ( win->GetWindowStyle() & wxTE_PROCESS_ENTER ) { // need to return a custom dlg code or we'll never get it return DLGC_WANTMESSAGE; @@ -332,7 +332,7 @@ bool wxComboBox::MSWCommand(WXUINT param, WXWORD id) // set these variables so that they could be also fixed in // CBN_EDITCHANGE below sel = GetSelection(); - value = GetValue(); + value = GetStringSelection(); { wxCommandEvent event(wxEVT_COMMAND_COMBOBOX_SELECTED, GetId()); event.SetEventObject(this);