Commit 6213ab3a authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

Fixed a problem where the string in a combo box flickers if you

rapidly reset the content and then replace the content.
parent 8c91b080
...@@ -1999,7 +1999,10 @@ static inline LRESULT WINAPI ComboWndProc_locked( WND* pWnd, UINT message, ...@@ -1999,7 +1999,10 @@ static inline LRESULT WINAPI ComboWndProc_locked( WND* pWnd, UINT message,
case CB_RESETCONTENT16: case CB_RESETCONTENT16:
case CB_RESETCONTENT: case CB_RESETCONTENT:
SendMessageA( lphc->hWndLBox, LB_RESETCONTENT, 0, 0 ); 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; return TRUE;
case CB_INITSTORAGE: case CB_INITSTORAGE:
return SendMessageA( lphc->hWndLBox, LB_INITSTORAGE, wParam, lParam); return SendMessageA( lphc->hWndLBox, LB_INITSTORAGE, wParam, lParam);
......
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