Events
19 May, 6 pm - 23 May, 12 am
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Sets the insertion mark in a tree-view control. You can use this macro or send the TVM_SETINSERTMARK message explicitly.
BOOL TreeView_SetInsertMark(
HWND hwnd,
HTREEITEM hItem,
BOOL fAfter
);
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.
Type: BOOL
Returns nonzero if successful, or zero otherwise.
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 |
Events
19 May, 6 pm - 23 May, 12 am
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register today