From c9e6031dca94f0530c1aa77b83db4daa969a0232 Mon Sep 17 00:00:00 2001 From: Gerard Patel Date: Sun, 18 Jun 2000 17:20:37 +0000 Subject: [PATCH] CB_SETCURSEL should not generate another listbox event after updating the edit box. --- controls/combo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controls/combo.c b/controls/combo.c index b5d20b19071..902643f97bb 100644 --- a/controls/combo.c +++ b/controls/combo.c @@ -1088,9 +1088,9 @@ static void CBUpdateEdit( LPHEADCOMBO lphc , INT index ) } } - lphc->wState |= CBF_NOEDITNOTIFY; + lphc->wState |= (CBF_NOEDITNOTIFY | CBF_NOLBSELECT); SendMessageA( lphc->hWndEdit, WM_SETTEXT, 0, pText ? (LPARAM)pText : (LPARAM)"" ); - lphc->wState &= ~CBF_NOEDITNOTIFY; + lphc->wState &= ~(CBF_NOEDITNOTIFY | CBF_NOLBSELECT); if( lphc->wState & CBF_FOCUSED ) SendMessageA( lphc->hWndEdit, EM_SETSEL, 0, (LPARAM)(-1) ); -- 2.11.4.GIT