TV_ITEM is the old name of TVITEM, shouldn't be used any more.
diff --git a/include/commctrl.h b/include/commctrl.h index 7a63708..c157aac 100644 --- a/include/commctrl.h +++ b/include/commctrl.h
@@ -2780,7 +2780,7 @@ _TVi.hItem = hti; \ _TVi.stateMask = _mask; \ _TVi.state = data; \ - SNDMSG((hwndTV), TVM_SETITEM, 0, (LPARAM)(TV_ITEM *)&_TVi); \ + SNDMSG((hwndTV), TVM_SETITEM, 0, (LPARAM)&_TVi); \ } #define TreeView_GetItemState(hwndTV, hti, mask) \