The TVN_SELCHANGED notification message notifies a tree-view control’s parent window that the selection has changed from one item to another. This notification message is sent in the form of a WM_NOTIFY message.
TVN_SELCHANGED pnmtv = (NM_TREEVIEW FAR *) lParam
The action member of the NM_TREEVIEW structure indicates the type of action that caused the selection to change. It can be one of the following values:
Value |
Meaning |
TVC_BYKEYBOARD |
By a key stroke |
TVC_BYMOUSE |
By a mouse click |
TVC_UNKNOWN |
Unknown |
No return value.