user32: Don't invalidate ComboBox on CB_SETCURSEL message.
Signed-off-by: Piotr Caban <piotr@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
9cb29e5182
commit
1a114c9f4b
|
@ -2142,10 +2142,7 @@ LRESULT ComboWndProc_common( HWND hwnd, UINT message, WPARAM wParam, LPARAM lPar
|
|||
SendMessageW(lphc->hWndLBox, LB_SETTOPINDEX, wParam, 0);
|
||||
|
||||
/* no LBN_SELCHANGE in this case, update manually */
|
||||
if( lphc->wState & CBF_EDIT )
|
||||
CBUpdateEdit( lphc, (INT)wParam );
|
||||
else
|
||||
InvalidateRect(lphc->self, &lphc->textRect, TRUE);
|
||||
CBPaintText( lphc, NULL );
|
||||
lphc->wState &= ~CBF_SELCHANGE;
|
||||
return lParam;
|
||||
case CB_GETLBTEXT:
|
||||
|
|
|
@ -6937,7 +6937,7 @@ static void test_combobox_messages(void)
|
|||
log_all_parent_messages++;
|
||||
SendMessageA(combo, CB_SETCURSEL, 0, 0);
|
||||
log_all_parent_messages--;
|
||||
ok_sequence(SetCurSelComboSeq, "CB_SETCURSEL on a ComboBox", TRUE);
|
||||
ok_sequence(SetCurSelComboSeq, "CB_SETCURSEL on a ComboBox", FALSE);
|
||||
|
||||
DestroyWindow(combo);
|
||||
DestroyWindow(parent);
|
||||
|
|
Loading…
Reference in New Issue