Recently, I had a bit of trouble with TreeView_GetItemState [archive] and TVM_GETITEMSTATE [archive]. The TreeView_GetItemState macro is a simple convenience wrapper around the TVM_GETITEMSTATE message. Hence, they should do the same thing: retrieve certain state values for a tree-view item.