comctl32/listview: Partially revert commit 43d982fde6
.
This commit is contained in:
parent
22fef33352
commit
d5319303f1
|
@ -5058,8 +5058,6 @@ static HWND LISTVIEW_EditLabelT(LISTVIEW_INFO *infoPtr, INT nItem, BOOL isW)
|
|||
|
||||
if (~infoPtr->dwStyle & LVS_EDITLABELS) return 0;
|
||||
if (nItem < 0 || nItem >= infoPtr->nItemCount) return 0;
|
||||
/* Edit could be created only on focused control and if isn't already created */
|
||||
if (GetFocus() != infoPtr->hwndSelf && !IsWindow(infoPtr->hwndEdit)) return 0;
|
||||
|
||||
infoPtr->nEditLabelItem = nItem;
|
||||
|
||||
|
|
|
@ -2919,7 +2919,7 @@ static void test_editbox(void)
|
|||
/* creating label disabled when control isn't focused */
|
||||
SetFocus(0);
|
||||
hwndedit = (HWND)SendMessage(hwnd, LVM_EDITLABEL, 0, 0);
|
||||
ok(hwndedit == NULL, "Expected Edit window not to be created\n");
|
||||
todo_wine ok(hwndedit == NULL, "Expected Edit window not to be created\n");
|
||||
|
||||
/* check EN_KILLFOCUS handling */
|
||||
memset(&item, 0, sizeof(item));
|
||||
|
|
Loading…
Reference in New Issue