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
|
@ -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 New Issue