CB_SETCURSEL should not generate another listbox event after updating

the edit box.
This commit is contained in:
Gerard Patel 2000-06-18 17:20:37 +00:00 committed by Alexandre Julliard
parent 6e027cbbec
commit c9e6031dca
1 changed files with 2 additions and 2 deletions

View File

@ -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) );