Results 1 to 40 of 223

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

Threaded View

  1. #11
    Fanatic Member Mith's Avatar
    Join Date
    Jul 2017
    Location
    Thailand
    Posts
    540

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

    Quote Originally Posted by fafalone View Post
    Maybe try ILD_SCALE and/or ILD_DPISCALE as additional flags in EnsureOverlay->imlSysJM.GetIcon nOvr, ILD_TRANSPARENT, hIcon
    If that doesn't help, the only remedy would be a lot of fragile manual sizing that would likely then wind up looking wrong on other people's systems.
    I fixed the overlay icon size problem in your code:

    At Sub "InitImageLists" change:

    Code:
    Call SHGetImageList(SHIL_JUMBO, IID_IImageList, imlSysJM)
    back to:

    Code:
    Call SHGetImageList(SHIL_SMALL, IID_IImageList, imlSysJM)
    But this will break icon size property. A icons size >16 is not possible anymore.
    I guess you have to use a separate ImageList for the overlay icons because they only use 16x16.
    Last edited by Mith; Feb 2nd, 2024 at 11:49 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