comctl32: Only update comboex edit box if the mask has CBEIF_TEXT set.

This commit is contained in:
Lei Zhang 2008-10-29 02:23:41 -07:00 committed by Alexandre Julliard
parent 2881b171df
commit 913373d2e6
1 changed files with 1 additions and 1 deletions

View File

@ -808,7 +808,7 @@ static BOOL COMBOEX_SetItemW (COMBOEX_INFO *infoPtr, COMBOBOXEXITEMW *cit)
if (TRACE_ON(comboex)) COMBOEX_DumpItem (item);
/* if original request was to update edit control, do some fast foot work */
if (cit->iItem == -1) {
if (cit->iItem == -1 && cit->mask & CBEIF_TEXT) {
COMBOEX_SetEditText (infoPtr, item);
RedrawWindow (infoPtr->hwndCombo, 0, 0, RDW_ERASE | RDW_INVALIDATE);
}