Muokkaa

Jaa


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)