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
BOOL TreeView_SetInsertMark(
HWND hwnd,
HTREEITEM hItem,
BOOL 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
Type: BOOL
Returns nonzero if successful, or zero otherwise.
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 |