Rediger

Del via


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 code Description
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

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Commctrl.h