TVN_SELCHANGED (Windows CE 5.0)

Send Feedback

This message notifies a tree view control's parent window that the selection has changed from one item to another. It is sent in the form of a WM_NOTIFY message.

TVN_SELCHANGEDpnmtv=(NM_TREEVIEW FAR *)lParam

Parameters

  • pnmtv
    Pointer to an NM_TREEVIEW structure. The itemOld and itemNew members of the NM_TREEVIEW 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 NM_TREEVIEW structure indicates the type of action that caused the selection to change. It is one of the following values.

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

Return Values

The return value is ignored.

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Commctrl.h.

See Also

NM_TREEVIEW | TVITEM | TVN_SELCHANGING | WM_NOTIFY

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.