Skip to content

Latest commit

 

History

History
73 lines (59 loc) · 2.93 KB

nf-commctrl-treeview_geteditcontrol.md

File metadata and controls

73 lines (59 loc) · 2.93 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:commctrl.TreeView_GetEditControl
TreeView_GetEditControl macro (commctrl.h)
Retrieves the handle to the edit control being used to edit a tree-view item's text. You can use this macro or send the TVM_GETEDITCONTROL message explicitly.
TreeView_GetEditControl
TreeView_GetEditControl macro [Windows Controls]
_win32_TreeView_GetEditControl
_win32_TreeView_GetEditControl_cpp
commctrl/TreeView_GetEditControl
controls.TreeView_GetEditControl
controls._win32_TreeView_GetEditControl
controls\TreeView_GetEditControl.htm
Controls
VS|Controls|~\controls\treeview\macros\treeview_geteditcontrol.htm
12/05/2018
TreeView_GetEditControl, TreeView_GetEditControl macro [Windows Controls], _win32_TreeView_GetEditControl, _win32_TreeView_GetEditControl_cpp, commctrl/TreeView_GetEditControl, controls.TreeView_GetEditControl, controls._win32_TreeView_GetEditControl
commctrl.h
Windows
Windows Vista [desktop apps only]
Windows Server 2003 [desktop apps only]
Windows
19H1
TreeView_GetEditControl
commctrl/TreeView_GetEditControl
c++
APIRef
kbSyntax
HeaderDef
Commctrl.h
TreeView_GetEditControl

TreeView_GetEditControl macro

-description

Retrieves the handle to the edit control being used to edit a tree-view item's text. You can use this macro or send the TVM_GETEDITCONTROL message explicitly.

-parameters

-param hwnd

Type: HWND

Handle to the tree-view control.

-returns

Type: HWND

The handle to the edit control being used to edit a tree-view item's text, or NULL if no item is being edited.

-remarks

When label editing begins, an edit control is created but not positioned or displayed. Before it is displayed, the tree-view control sends its parent window a TVN_BEGINLABELEDIT notification code.

To customize label editing, implement a handler for TVN_BEGINLABELEDIT and have it use TreeView_GetEditControl to send a TVM_GETEDITCONTROL message to the tree-view control. If a label is being edited, the return value will be a handle to the edit control. Use this handle to customize the edit control by sending the usual EM_XXX messages.