TreeView_GetLastVisible macro

Retrieves the last expanded item in a tree-view control. This does not retrieve the last item visible in the tree-view window. You can use this macro, or you can explicitly send the TVM_GETNEXTITEM message with the TVGN_LASTVISIBLE flag.

Syntax


HTREEITEM TreeView_GetLastVisible(
   HWND hwndTV
);

Parameters

hwndTV

Type: HWND

Handle to the tree-view control.

Return value

Returns the handle to the item if successful, or NULL otherwise.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Commctrl.h

See also

Reference
TreeView_GetFirstVisible
TreeView_GetNextVisible
TreeView_GetPrevVisible
TVM_GETITEMRECT

 

 

Show: