Alexandre,
Esse fórum discute exatamente o que preciso.
http://stackoverflow.com/questions/2014 ... le-loading
Mas as o ícone da barra de ferramenta continua inalterável, ele alterou apenas a barra de título, mas isso eu já fiz!
Veja o que eu fiz:
em um módulo eu inserir:
Declare Function ExtractIcon32 Lib "shell32.dll" Alias _
"ExtractIconA" (ByVal hInst As Long, _
ByVal lpszExeFileName As String, ByVal nIconIndex As Long) As Long
Declare Function GetActiveWindow32 Lib "user32" _
Alias "GetActiveWindow" () As Integer
Declare Function SendMessage32 Lib "user32" Alias _
"SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, _
ByVal wParam As Long, ByVal lParam As Long) As Long
e na form:
Private Sub UserForm_Initialize()
call Sample
End Sub
Sub Sample()
Dim myIcoFile As String
Dim NewIco
'~~> Change this to the relevant icon file
myIcoFile = "C:UsersUSUARIODownloadsuTorrentPortableAppAppInfoAppIcon.ico"
NewIco = ExtractIcon32(0, myIcoFile, 0)
SendMessage32 GetActiveWindow32(), &H80, 1, NewIco
End Sub
Postado : 14/10/2014 6:35 pm