mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:43:31 +00:00
Fixed a problem where the string in a combo box flickers if you
rapidly reset the content and then replace the content.
This commit is contained in:
parent
8c91b080b7
commit
6213ab3a89
1 changed files with 4 additions and 1 deletions
|
@ -1999,7 +1999,10 @@ static inline LRESULT WINAPI ComboWndProc_locked( WND* pWnd, UINT message,
|
|||
case CB_RESETCONTENT16:
|
||||
case CB_RESETCONTENT:
|
||||
SendMessageA( lphc->hWndLBox, LB_RESETCONTENT, 0, 0 );
|
||||
InvalidateRect(CB_HWND(lphc), NULL, TRUE);
|
||||
if( CB_HASSTRINGS(lphc) )
|
||||
SendMessageA( lphc->hWndEdit, WM_SETTEXT, 0, (LPARAM)"" );
|
||||
else
|
||||
InvalidateRect(CB_HWND(lphc), NULL, TRUE);
|
||||
return TRUE;
|
||||
case CB_INITSTORAGE:
|
||||
return SendMessageA( lphc->hWndLBox, LB_INITSTORAGE, wParam, lParam);
|
||||
|
|
Loading…
Reference in a new issue