Ensure there is an edit control when we reset contents.

This commit is contained in:
Ulrich Czekalla 2001-01-09 20:49:53 +00:00 committed by Alexandre Julliard
parent e5786e3be6
commit b3da1ac0cd

View File

@ -2091,7 +2091,7 @@ static LRESULT ComboWndProc_locked( WND* pWnd, UINT message,
case CB_RESETCONTENT16:
case CB_RESETCONTENT:
SendMessageW(lphc->hWndLBox, LB_RESETCONTENT, 0, 0);
if( CB_HASSTRINGS(lphc) )
if( (lphc->wState & CBF_EDIT) && CB_HASSTRINGS(lphc) )
{
static const WCHAR empty_stringW[] = { 0 };
SendMessageW(lphc->hWndEdit, WM_SETTEXT, 0, (LPARAM)empty_stringW);