TVM_INSERTITEM message
Inserts a new item in a tree-view control. You can send this message explicitly or by using the TreeView_InsertItem macro.
Parameters
-
wParam
- Must be zero.
-
lParam
-
Pointer to a TVINSERTSTRUCT structure that specifies the attributes of the tree-view item.
Return value
Returns the HTREEITEM handle to the new item if successful, or NULL otherwise.
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista [desktop apps only] |
Minimum supported server |
Windows Server 2003 [desktop apps only] |
Header |
|
Unicode and ANSI names |
TVM_INSERTITEMW (Unicode) and TVM_INSERTITEMA (ANSI) |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for