CB_SETCURSEL should not generate another listbox event after updating
the edit box.
This commit is contained in:
parent
6e027cbbec
commit
c9e6031dca
|
@ -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) );
|
||||
|
|
Loading…
Reference in New Issue