PDA

Click to See Complete Forum and Search --> : loading files/folders in listview is slow ??


pampatipraveen
Nov 12th, 2003, 07:14 AM
Hi,

I am writing a Backup Application using VB6. Here I need to show treeview and listivew with Directories and Files like Windows explorer and allow user to select or drag files for backup. I have populated directory tree. that is fine. But in case of listview for showing selected Directory contents with windows icons I am using Filesystemobject and then getting windows icons for the files and directories. In case of large directory it is taking time to load the files and directories. I treid with Findfirstfile and findnextfile apis also. still it is slow. Can anybody suggest me some good way of loading the files and folders in the listview with windows associated icons?

thanking you

regards
praveenp

csar
Nov 13th, 2003, 04:22 AM
I use this API to cancel redrawing treeview listing


Public Const WM_VSCROLL = &H115
Public Const WM_SETREDRAW = &HB

lngRet = SendMessage(trvCustom.hWnd, WM_SETREDRAW, 0, ByVal CLng(0))


It might help you