comctl32: Allow label edit only if treeview style allows editing.

This commit is contained in:
Daniel Jelinski 2012-06-02 07:23:32 +02:00 committed by Alexandre Julliard
parent fccee5d20c
commit 1196aed33f
1 changed files with 3 additions and 0 deletions

View File

@ -3810,6 +3810,9 @@ TREEVIEW_EditLabel(TREEVIEW_INFO *infoPtr, HTREEITEM hItem)
TEXTMETRICW textMetric;
TRACE("%p %p\n", hwnd, hItem);
if (!(infoPtr->dwStyle & TVS_EDITLABELS))
return NULL;
if (!TREEVIEW_ValidItem(infoPtr, hItem))
return NULL;