Results 1 to 2 of 2

Thread: loading files/folders in listview is slow ??

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2002
    Posts
    94

    Thumbs up loading files/folders in listview is slow ??

    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

  2. #2
    Hyperactive Member csar's Avatar
    Join Date
    Mar 2002
    Location
    Siam
    Posts
    288
    I use this API to cancel redrawing treeview listing

    VB Code:
    1. Public Const WM_VSCROLL = &H115
    2. Public Const WM_SETREDRAW = &HB
    3.  
    4.     lngRet = SendMessage(trvCustom.hWnd, WM_SETREDRAW, 0, ByVal CLng(0))

    It might help you
    Don't leave it till tomorrow, Do It Now!
    5361726176757468204368616E63686F747361746869656E

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width