Results 1 to 40 of 66

Thread: [VB6, twinBASIC] ucDriveCombo - A modern DriveList replacement

Hybrid View

  1. #1

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

    Re: [VB6, twinBASIC] ucDriveCombo - A modern DriveList replacement

    You also have to add the SHGFI_ICON flag for .hIcon to be set.

  2. #2
    Addicted Member
    Join Date
    Feb 2006
    Location
    Craiova, Romania
    Posts
    140

    Re: [VB6, twinBASIC] ucDriveCombo - A modern DriveList replacement

    Quote Originally Posted by VanGoghGaming View Post
    Put that into the PICTDESC
    Quote Originally Posted by fafalone View Post
    You also have to add the SHGFI_ICON flag for .hIcon to be set.
    i try ..


    Code:
    Public Sub RefreshDriveList()
            IID_IPicture = &H7BF80980
    
    	Dim diskIcon As StdPicture
    	Dim dPict As PICTDESC
    	dPict.Size = Len(dPict)
    	dPict.Type = vbPicTypeIcon
    	
    	...
    		mDrives(mCt).Name = sName
    		mDrives(mCt).nIcon = GetIconIndex(sDrives(i), SHGFI_SMALLICON)
    		
                  dPict .hBmpOrIcon = mDrives(mCt).nIcon
                  Call OleCreatePictureIndirect(dPict, IID_IPicture  , True, diskIcon)
                  
                 Picture1.Picture = diskIcon
    	...
    End sub
    ... but not work
    Last edited by cliv; Apr 25th, 2024 at 05:42 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