De fleste virksomheder har efterhånden bevist, at AI virker.
Pilotprojekter leverer resultater. Medarbejdere bruger generative AI-værktøjer. Nye use cases dukker op på tværs af organisationen.
Private Const BASIC_SHGFI_FLAGS = SHGFI_TYPENAME _ Or SHGFI_SHELLICONSIZE Or SHGFI_SYSICONINDEX _ Or SHGFI_DISPLAYNAME Or SHGFI_EXETYPE
Private Type SHFILEINFO \'As required by ShInfo hIcon As Long iIcon As Long dwAttributes As Long szDisplayName As String * MAX_PATH szTypeName As String * 80 End Type
\'---------------------------------------------------------- \'Functions & Procedures \'---------------------------------------------------------- Private Declare Function SHGetFileInfo Lib \"shell32.dll\" Alias \"SHGetFileInfoA\" _ (ByVal pszPath As String, _ ByVal dwFileAttributes As Long, _ psfi As SHFILEINFO, _ ByVal cbSizeFileInfo As Long, _ ByVal uFlags As Long) As Long
Private Declare Function ImageList_Draw Lib \"comctl32.dll\" _ (ByVal himl&, ByVal i&, ByVal hDCDest&, _ ByVal x&, ByVal y&, ByVal flags&) As Long
CurrFile = Dir Wend End Sub Private Function GetIcon(FileName As String, Index As Long) As Long Dim hLIcon As Long, hSIcon As Long \'Large & Small Icons Dim imgObj As ListImage \'Single bmp in imagelist.listimages collection Dim r As Long
\'Get a handle to the small icon hSIcon = SHGetFileInfo(FileName, 0&, ShInfo, Len(ShInfo), _ BASIC_SHGFI_FLAGS Or SHGFI_SMALLICON)
If hSIcon <> 0 Then With Pic16 Set .Picture = LoadPicture(\"\") .AutoRedraw = True r = ImageList_Draw(hSIcon, ShInfo.iIcon, Pic16.hDC, 0, 0, ILD_TRANSPARENT) .Refresh End With Set imgObj = Imagelist.ListImages.Add(Index, , Pic16.Image) End If End Function
Synes godt om
Ny brugerNybegynder
Din løsning...
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.