0

Subject says it all. Is there a way when handling NM_CUSTOMDRAW for a tree view to get the text of the item currently being drawn?

Thanks.

user3161924
  • 1,849
  • 18
  • 33
  • 1
    Probably you can get it using `dwItemSpec` in `NMCUSTOMDRAW` structure. See also `TVM_GETITEM` message. – i486 Dec 15 '22 at 22:18
  • Yes, I just found this: https://learn.microsoft.com/en-us/windows/win32/controls/nm-customdraw-tree-view which documents the dwItemSpec. It was a bit convoluted to find it. – user3161924 Dec 15 '22 at 22:36

0 Answers0