Commit c9e6031d authored by Gerard Patel's avatar Gerard Patel Committed by Alexandre Julliard

CB_SETCURSEL should not generate another listbox event after updating

the edit box.
parent 6e027cbb
......@@ -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) );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment