Do not draw the text of the item being edited.

This commit is contained in:
Dimitrie O. Paun 2002-11-06 22:32:00 +00:00 committed by Alexandre Julliard
parent 1046fe3051
commit add721769b
1 changed files with 2 additions and 1 deletions

View File

@ -3515,7 +3515,7 @@ static BOOL LISTVIEW_DrawItem(LISTVIEW_INFO *infoPtr, HDC hdc, INT nItem, INT nS
}
/* Don't bother painting item being edited */
if (infoPtr->hwndEdit && lprcFocus && nSubItem == 0) goto postpaint;
if (infoPtr->hwndEdit && nItem == infoPtr->nEditLabelItem && nSubItem == 0) goto postpaint;
/* Set the text attributes */
if (nmlvcd.clrTextBk != CLR_NONE)
@ -4293,6 +4293,7 @@ static HWND LISTVIEW_EditLabelT(LISTVIEW_INFO *infoPtr, INT nItem, BOOL isW)
LISTVIEW_SetSelection(infoPtr, nItem);
LISTVIEW_SetItemFocus(infoPtr, nItem);
LISTVIEW_InvalidateItem(infoPtr, nItem);
rect.left = LVIR_LABEL;
if (!LISTVIEW_GetItemRect(infoPtr, nItem, &rect)) return 0;