Skip to content

Latest commit

 

History

History
62 lines (36 loc) · 1.99 KB

tvm-geteditcontrol.md

File metadata and controls

62 lines (36 loc) · 1.99 KB
title description ms.assetid keywords topic_type api_name api_location api_type ms.topic ms.date
TVM_GETEDITCONTROL message (Commctrl.h)
Retrieves the handle to the edit control being used to edit a tree-view item's text. You can send this message explicitly or by using the TreeView\_GetEditControl macro.
c89e57e8-e113-47a1-85e6-bb68990f9c1a
TVM_GETEDITCONTROL message Windows Controls
apiref
TVM_GETEDITCONTROL
Commctrl.h
HeaderDef
reference
05/31/2018

TVM_GETEDITCONTROL message

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

Parameters

wParam

Must be zero.

lParam

Must be zero.

Return value

Returns the handle to the edit control if successful, or NULL otherwise.

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 an TVN_BEGINLABELEDIT notification code.

To customize label editing, implement a handler for TVN_BEGINLABELEDIT and have it 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.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Commctrl.h