Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Notifies a tree-view control's parent window that the selection has changed from one item to another. This notification code is sent in the form of a WM_NOTIFY message.
TVN_SELCHANGED
pnmtv = (LPNMTREEVIEW) lParam
lParam
Pointer to an NMTREEVIEW structure. The itemOld and itemNew members of the NMTREEVIEW structure are TVITEM structures that contain information about the previously selected item and the newly selected item. Only the mask, hItem, state, and lParam members of these structures are valid. The stateMask members of the TVITEM structures specified by itemOld and itemNew are undefined on input. The action member of the NMTREEVIEW structure indicates the type of action that caused the selection to change. It can be one of the following values:
Requirement | Value |
---|---|
TVC_BYKEYBOARD | By a keystroke. |
TVC_BYMOUSE | By a mouse click. |
TVC_UNKNOWN | Unknown. |
The return value is ignored.
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista [desktop apps only] |
Minimum supported server |
Windows Server 2003 [desktop apps only] |
Header |
|
Unicode and ANSI names |
TVN_SELCHANGEDW (Unicode) and TVN_SELCHANGEDA (ANSI) |
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register today