Share via


TVN_SELCHANGED

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

TVN_SELCHANGED pnmtv = (NM_TREEVIEW FAR *) lParam

Parameters

  • pnmtv
    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 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

Runs on Versions Defined in Include Link to
Windows CE OS 1.0 and later Commctrl.h    

Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

NM_TREEVIEW, TVN_SELCHANGING, WM_NOTIFY

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.