Export (0) Print
Expand All

TVN_SELCHANGED notification code

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 

Parameters

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:

TVC_BYKEYBOARD By a keystroke.
TVC_BYMOUSE By a mouse click.
TVC_UNKNOWN Unknown.

 

Return value

The return value is ignored.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Commctrl.h

Unicode and ANSI names

TVN_SELCHANGEDW (Unicode) and TVN_SELCHANGEDA (ANSI)

 

 

Community Additions

ADD
Show:
© 2014 Microsoft