Hi,
I want to populate a listview with files list, where the icons of the respective file would be displayed.
For example, if the file listed in listview is an application, the icon related with the application need to be displayed.
Cheers.
Hi,
I want to populate a listview with files list, where the icons of the respective file would be displayed.
For example, if the file listed in listview is an application, the icon related with the application need to be displayed.
Cheers.
bump!!!
:D :D :D
Use the ExtractIcon function which retrieves the handle of an icon from the specified executable file, dynamic-link library (DLL), or icon file.
Definition :
Parameters:Code:Declare Function ExtractIcon Lib "shell32.dll" Alias "ExtractIconA" (ByVal hInst As Long, ByVal lpszExeFileName As String, ByVal nIconIndex As Long) As Long
· hInst
Identifies the instance of the application calling the function.
· lpszExeFileName
Points to a null-terminated string specifying the name of an executable file, DLL, or icon file.
· nIconIndex
Specifies the index of the icon to retrieve. If this value is 0, the function returns the handle of the first icon in the specified file. If this value is -1, the function returns the total number of icons in the specified file.