TreeView_SetInsertMark macro (commctrl.h)

Sets the insertion mark in a tree-view control. You can use this macro or send the TVM_SETINSERTMARK message explicitly.

Syntax

void TreeView_SetInsertMark(
   hwnd,
   hItem,
   fAfter
);

Parameters

hwnd

Type: HWND

Handle to a tree-view control.

hItem

Type: HTREEITEM

HTREEITEM that specifies at which item the insertion mark will be placed. If this argument is NULL, the insertion mark is removed.

fAfter

Type: BOOL

BOOL value that specifies if the insertion mark is placed before or after the specified item. If this argument is nonzero, the insertion mark will be placed after the item. If this argument is zero, the insertion mark will be placed before the item.

Return value

None

Requirements

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