Win32 textbox in treeview

I want to add textboxin treeviewas a child of one of the parent node. Is it possible> If so, how to do it?

+3
source share
2 answers

The TreeView's own control will not be useful at all to make this work. Programming itself is a complex proposition. This, however, is a very popular UI gadget. Any component vendor sells one, which is always called a "TreeList".

You will need to make purchases if you want to use such a component from unmanaged C / C ++. The ActiveX version of such a control is as close as possible. Most component suppliers, however, have put this in their old package.

+2
source

Depending on your requirements, you can use the built-in label editing functions in the Win32 tree. See TVM_EDITLABEL.

To make an element act as an editing control, you can send this message yourself when the element is clicked. You can also use owner drawing methods to make an element more like an edit control when it is not in label editing mode.

0
source

Source: https://habr.com/ru/post/1737893/


All Articles