Skip to content

Latest commit

 

History

History
73 lines (42 loc) · 2.11 KB

tvn-selchanging.md

File metadata and controls

73 lines (42 loc) · 2.11 KB
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
TVN_SELCHANGING notification code Windows Controls
apiref
TVN_SELCHANGING
TVN_SELCHANGINGA
TVN_SELCHANGINGW
Commctrl.h
HeaderDef
reference
05/31/2018

TVN_SELCHANGING notification code

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 

Parameters

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.

Return value

Returns TRUE to prevent the selection from changing.

Remarks

When responding to this notification code, applications should not delete the items that are gaining or losing the selection.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Commctrl.h
Unicode and ANSI names
TVN_SELCHANGINGW (Unicode) and TVN_SELCHANGINGA (ANSI)