-
Notifications
You must be signed in to change notification settings - Fork 40
Treeview x86 Functions
Description: Collapse the specified item and all the children below it (branch)
Parameters: hTreeview, hItem
Returns: None.
Description: Returns the maximum depth of all children branches from the specified item downwards.
Parameters: hTreeview, hItem
Returns: eax contains the max depth of children branches.
Description: Expand the specified item and all the children below it (branch)
Parameters: hTreeview, hItem
Returns: None.
Description:
Parameters: hTreeview, hItem
Returns: None.
Description: Clears / Deletes all treeview items.
Parameters: hTreeview
Returns: None.
Description: Counts the number of items under the specified item.
Parameters: hTreeview, hItem, bRecurse
Returns: eax contains number of items.
Description: Counts total number of items in the treeview.
Parameters: hTreeview
Returns: eax contains total number of items.
Description: Clears / Deletes all treeview items.
Parameters: hTreeview
Returns: None.
Description: Finds the specified text in any item, starting from the specified item.
Parameters: hTreeview, hItem, lpszFindText
Returns: eax contains hItem that contains the matching text searched for, or NULL otherwise.
Description: Gets the imagelist index used by the specified item.
Parameters: hTreeview, hItem
Returns: eax contains the imagelist index number associated with the icon used in the item.
Description: Gets the lParam value associated with the item, when it was created or assigned to it via TreeViewItemInsert or TreeViewSetItemParam.
Parameters: hTreeview, hItem
Returns: eax contains the lParam value associated with the item.
Description: Gets the text of the specified item and stores it in the buffer pointed to by lpszTextBuffer.
Parameters: hTreeview, hItem, lpszTextBuffer, dwSizeTextBuffer
Returns: eax contains the length of text returned in the lpszTextBuffer or 0 otherwise.
Description: Gets the imagelist index used by the currently selected item.
Parameters: hTreeview
Returns: eax contains the imagelist index number associated with the icon used in the item.
Description: Gets the currently selected item of the treeview.
Parameters: hTreeview
Returns: eax contains hItem or NULL if no item is currently selected.
Description: Gets the lParam value associated with the currently selected item, when it was created or assigned to it via TreeViewItemInsert or TreeViewSetItemParam
Parameters: hTreeview
Returns: eax contains the lParam value associated with the item.
Description: Gets the text of the currently selected item and stores it in the buffer pointed to by lpszTextBuffer.
Parameters: hTreeview, lpszTextBuffer, dwSizeTextBuffer
Returns: eax contains the length of text returned in the lpszTextBuffer or 0 otherwise.
Description: Collapse the specified item if it has children.
Parameters: hTreeview, hItem
Returns: None.
Description: Deletes the specified item from the treeview. To delete all items use TreeViewClearAll or TreeViewDeleteAll
Parameters: hTreeview, hItem
Returns: None.
Description: Expand the specified item if it has children.
Parameters: hTreeview, hItem
Returns: None.
Description: Determines if the specified item has children items under it.
Parameters: hTreeview, hItem
Returns: eax contains TRUE if item has children or FALSE otherwise.
Description: Insert / Add a new item to the treeview. New item to be inserted is relative to the hNodeParent and NodePosition. After each insertion the nNodeIndex value should be incremented for use with the next item to be inserted. lpszNodeText points to a buffer containing text to display in the treeview item. User can set dwParam to a custom value for their own usage.
Parameters: hTreeview, hNodeParent, lpszNodeText, nNodeIndex, NodePosition, nImage, nImageSelected, dwParam
Returns: eax contains hItem of newly inserted item or NULL otherwise.
Description: Collapse or expands the specified item, depening on the previous state.
Parameters: hTreeview, hItem
Returns: None.
Description: Links a previously created imagelist and associates it and its icons with the treeview. The index of icons added to the imagelist are used when using TreeViewInsert, TreeViewGetItemImage, TreeViewSetItemImage or TreeViewGetSelectedImage
Parameters: hTreeview, hImagelist, ImagelistType
Returns: None.
Description: Collapses all items in the treeview and all branches.
Parameters: hTreeview
Returns: None.
Description: Expands all items in the treeview and all branches.
Parameters: hTreeview
Returns: None
Description: Set the specified item's icon, which is a index from the associated and linked imagelist used by the treeview.
Parameters: hTreeview, hItem, nImageListIndex
Returns: None.
Description: Sets the specified item's lParam value. A custom value for your own usage.
Parameters: hTreeview, hItem, dwParam
Returns: None.
Description: Sets the specified item's text to the string pointed to by lpszTextBuffer.
Parameters: hTreeview, hItem, lpszTextBuffer
Returns: None.
Description: Sets the currently selected item in the treeview and scrolls the item into view if bVisible is TRUE
Parameters: hTreeview, hItem, bVisible
Returns: None.
Description: Set subclass data to the subclassed treeview (subclassed via TreeViewSubClassProc) This is just a wrapper of SetWindowLong / SetWindowLongPtr.
Parameters: hTreeview, lpdwTVSubClassData
Returns: None.
Description: Set the procedure of the treeview subclass. This is just a wrapper of SetWindowLong / SetWindowLongPtr.
Parameters: hTreeview, lpdwTVSubClassProc
Returns: eax contains pointer to original procedure.
Description: Walks the treeview and returns each item in turn back via a callback function. Walk starts at the specified hItem.
Parameters: hTreeview, hItem, lpTreeViewWalkCallback, lpCustomData
Returns: eax contains TRUE if succesful or FALSE otherwise.
Description: Callback function defined by user and used with TreeViewWalk. The callback functions expects the parameters as listed below. Returning TRUE from the callback function continues the walk process or FALSE to cancel out of it. dwStatus will contain one of the following values:
TREEVIEWWALK_NULL
TREEVIEWWALK_ITEM
TREEVIEWWALK_ITEM_START
TREEVIEWWALK_ITEM_FINISH
TREEVIEWWALK_ROOT_START
TREEVIEWWALK_ROOT_FINISH
Parameters: hTreeview, hItem, dwStatus, dwTotalItems, dwItemNo, dwLevel, dwCustomData
Returns: eax should contain TRUE to continue or FALSE to cancel the walk process.