VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

This code extracts the icon from any file and saves it into a image list to be used in listviews, t

Ray  (1 Submission)   Windows System Services   VB 6.0   Unknown Difficulty   Thu 14th September 2000   Mon 8th February 2021

This code extracts the icon from any file and saves it into a image list to be used in listviews, treeviews, and the like. It will extract the

API Declarations



Public Declare Function OleCreatePictureIndirect _
Lib "olepro32.dll" (PicDesc As PicBmp, RefIID As GUID, _
ByVal fPictureOwnsHandle As Long, IPic As IPicture) As Long

Public Type PicBmp
Size As Long
tType As Long
hBmp As Long
hPal As Long
Reserved As Long
End Type

Public Type GUID
Data1 As Long
Data2 As Integer
Data3 As Integer
Data4(7) As Byte
End Type

Public Type SHFILEINFO
hicon As Long
iIcon As Long
dwAttributes As Long
szDisplayName As String * 260
szTypeName As String * 80
End Type

Rate This code extracts the icon from any file and saves it into a image list to be used in listviews, t (1(1 Vote))
This code extracts the icon from any file and saves it into a image list to be used in listviews, t.bas

This code extracts the icon from any file and saves it into a image list to be used in listviews, t Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters