Results 1 to 40 of 223

Thread: [VB6] ucShellTree - Full-featured Shell Tree UserControl

Threaded View

  1. #11

    Thread Starter
    PowerPoster
    Join Date
    Jul 2010
    Location
    NYC
    Posts
    7,653

    Re: [VB6] ucShellTree - Full-featured Shell Tree UserControl

    Ok I found I solution for the default share/link ones. I don't know if this is how I was doing it during tests the other week but it's working now. Replace the InitImageLists function with this one:

    Code:
    Private Sub InitImageLists()
        If IsComCtl6 = False Then
            himlTV = ImageList_Create(mIconSize, mIconSize, ILC_COLOR32 Or ILC_MASK, 1, 1)
            Dim clbk As Long
            OleTranslateColor clrBack, 0&, clbk
            ImageList_SetBkColor himlTV, clbk
        Else
            himlTV = ImageList_Create(mIconSize, mIconSize, ILC_COLOR32 Or ILC_MASK Or ILC_HIGHQUALITYSCALE, 1, 1)
        End If
        Call SHGetImageList(SHIL_JUMBO, IID_IImageList, imlSysJM)
        hSysIL = ObjPtr(imlSysJM)
    End Sub
    Also make the first line of EnsureOverlay
    If nIdx = -1 Then Exit Function

    Shouldn't be letting it raise an error.

    Haven't looked into the extended ones crashing yet. I stopped using them myself because, at least on my last Windows install, retrieving them was *painfully* slow. Like 10x the execution time slow.
    Last edited by fafalone; Feb 2nd, 2024 at 01:31 AM.

Tags for this Thread

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