Author Topic: ListBox 相關的程序函數庫  (Read 3630 times)

admin

  • Administrator
  • *****
  • Posts: 0
    • View Profile
ListBox 相關的程序函數庫
« on: November 11, 2011, 01:27:25 PM »
Code: [Select]
Sub ListBoxAddRowbyAry(hWndControl As Dword, tmpArray() As String, StartRow As Integer,ByVal ItemDataPos As Integer, ByVal ItemStringPos As Integer)
    Dim intY As Integer
    Dim tmpIndex As Long
       
    FF_ListBox_ResetContent(hWndControl )
    For inty=startrow To UBound(tmparray,2)
       tmpindex=FF_ListBox_AddString( hWndControl, tmparray(itemstringpos,inty))
       FF_ListBox_SetItemData (hWndControl, tmpindex,CvL(tmparray(itemdatapos,inty)))
    Next

End Sub