I tried to extend the control for supporting multiline editboxes. There is a structure called TVITEMEX. I used iIntegral to increase the height of the items. This height is in increments of the standard item height (see TVM_SETITEMHEIGHT). By default, each item gets one increment of item height. Setting this member to 2 will give the item twice the standard height; setting this member to 3 will give the item three times the standard height; and so on. So far so good. The trouble is that scrolling of the tree don't works well any more. Has anybody an idea? T hanx.
Instead of trying it this way, why did use the existing support for edit boxes and instead specify ES_MULTILINE and ensure the edit box is created with the height you want. Just like the way normal drop down combos work.
The idea is that the text (contents) of the edit box should appear as item label in the tree after destroying the box by losing the focus. But there is too few space between the items for more than one row of text. In a combo box you select only one row. Therefore it isn't a problem to draw the text selected as item in the tree.
Last Visit: 31-Dec-99 18:00 Last Update: 27-Aug-14 22:28