Is it possible to define text length that would be displayed in the node of Tree View control in Win32 application?

For example we have string "text|2". Then I want to store pointer to this string in the node, but display only "text" without "|2".

I thought that cchTextMax field is responsible for this, but the next code won't work:

```
TV_INSERTSTRUCT tvinsert;
tvinsert.item.mask = TVIF_TEXT;
tvinsert.item.pszText = "text|2";
tvinsert.item.cchTextMax= 4;
SendDlgItemMessage(hDlg,IDD_TREE,TVM_INSERTITEM,0,(LPARAM)&tvinsert);

```

Node strill displays full text "text|2".

One solution was to copy required text to new pointer, and then use it. But this solution not satisfied me, since I need to store last part of string with node too.