TVN_SELCHANGEDTVN_SELCHANGED*
*Contents  *Index  *Topic Contents
*Previous Topic: TVN_KEYDOWN
*Next Topic: TVN_SELCHANGING

TVN_SELCHANGED


TVN_SELCHANGED 
    pnmtv = (LPNMTREEVIEW) lParam 

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

pnmtv
Address of 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.

Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.