title | description | ms.assetid | keywords | topic_type | api_name | api_location | api_type | ms.topic | ms.date | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
TVN_SELCHANGING notification code (Commctrl.h) |
Notifies a tree-view control's parent window that the selection is about to change from one item to another. This notification code is sent in the form of a WM\_NOTIFY message. |
53f24ee0-433c-4680-9075-5e2b21117ed9 |
|
|
|
|
|
reference |
05/31/2018 |
Notifies a tree-view control's parent window that the selection is about to change from one item to another. This notification code is sent in the form of a WM_NOTIFY message.
TVN_SELCHANGING
pnmtv = (LPNMTREEVIEW) lParam
-
lParam
-
Pointer to an NMTREEVIEW structure. The itemOld and itemNew members contain valid information about the currently selected item and the newly selected item. The action member indicates whether a mouse or keyboard action is causing the selection to change. For a list of possible values, see the description of the TVN_SELCHANGED notification code.
Returns TRUE to prevent the selection from changing.
When responding to this notification code, applications should not delete the items that are gaining or losing the selection.
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_SELCHANGINGW (Unicode) and TVN_SELCHANGINGA (ANSI) |