Daniel Jelinski : comctl32: Allow label edit only if treeview style allows editing.
Alexandre Julliard
julliard at winehq.org
Thu Jun 7 13:39:19 CDT 2012
Module: wine
Branch: master
Commit: 1196aed33f2e0765abc063c8d35cbf9148a99850
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1196aed33f2e0765abc063c8d35cbf9148a99850
Author: Daniel Jelinski <djelinski1 at gmail.com>
Date: Sat Jun 2 07:23:32 2012 +0200
comctl32: Allow label edit only if treeview style allows editing.
---
dlls/comctl32/treeview.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/comctl32/treeview.c b/dlls/comctl32/treeview.c
index 63e3507..8c93f8c 100644
--- a/dlls/comctl32/treeview.c
+++ b/dlls/comctl32/treeview.c
@@ -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;
More information about the wine-cvs
mailing list