check the MSDN about the TVN_ITEMEXPANDED windows message.
pNMHDR is actually a pointer to an NM_TREEVIEW structure, in which The itemNew member is a TV_ITEM structure that contains valid information about the parent item in the hItem, state, and lParam members. The action member in NM_TREEVIEW indicates whether the list expanded or collapsed(TVE_COLLAPSE or TVE_EXPAND ).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.