GaryFrost Posted February 14, 2005 Share Posted February 14, 2005 (edited) expandcollapse popup;=============================================================================== ; ; Function Name: _GUICtrlGetListViewColsCount() ; Description: Return the number of columns for a listview ; ; Parameter(s): $lv - ListView control ; $title - Windows title ; $text - Window text ; ; Requirement(s): None ; Return Value(s): Number of columns ; ; Author(s): Gary Frost ; ;=============================================================================== Func _GUICtrlGetListViewColsCount(ByRef $lv,$title="",$text="") If(StringLen($title)==0) Then $title = WinGetTitle("") EndIf Return ControlListView($title ,$text, $lv, "GetSubItemCount") EndFunc ;=============================================================================== ; ; Function Name: _GUICtrlGetListViewItemsCount() ; Description: Return the number of columns for a listview ; ; Parameter(s): $lv - ListView control ; $title - Windows title ; $text - Window text ; ; Requirement(s): None ; Return Value(s): Number rows ; ; Author(s): Gary Frost ; ;=============================================================================== Func _GUICtrlGetListViewItemsCount(ByRef $lv,$title="",$text="") If(StringLen($title)==0) Then $title = WinGetTitle("") EndIf Return ControlListView($title ,$text, $lv, "GetItemCount") EndFunc Edited November 1, 2007 by GaryFrost SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now