Jump to content

Possible addition (ListView Item count)


GaryFrost
 Share

Recommended Posts

;===============================================================================
;
; 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 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...