Export (0) Print
Expand All

TVN_SINGLEEXPAND notification code

Sent by a tree-view control with the TVS_SINGLEEXPAND style when the user opens or closes a tree item using a single click of the mouse. This notification code is sent in the form of a WM_NOTIFY message.


TVN_SINGLEEXPAND

    lpnmtv = (LPNMTREEVIEW)lParam;

Parameters

lParam

Pointer to an NMTREEVIEW structure that contains information about this notification code.

Return value

Return TVNRET_DEFAULT to allow the default behavior to occur. To modify the default behavior, return:

Return codeDescription
TVNRET_SKIPOLD

Skip default processing of the item being unselected.

TVNRET_SKIPNEW

Skip default processing of the item being selected.

 

Remarks

To skip default processing of selected and unselected items, return both TVNRET_SKIPOLD and TVNRET_SKIPNEW by combining them with a logical OR.

This notification code is only sent by tree-view controls that have the TVS_SINGLEEXPAND style.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Commctrl.h

 

 

Community Additions

ADD
Show:
© 2014 Microsoft