Stavo pensando, ci sono programmi che rendono semitrasparenti le finestre (ne gira qualcuno sul web) dunque questi programmi lasciati aperti modificherrano una proprietà della finestra, ma... con quale metodo? Un sendmessage su qualche proprietà? Dunque con quale messaggio? O con che altra api? Tipo SetLayeredWindowAttributes?
Infatti stavo provando questo:
(ometto le dichiarazioni delle api usate)
codice:
Dim hwnd As Integer
hwnd = 3147626 //hwnd di una finestra esistente
'MsgBox(CStr(hwnd))
Dim style As Long
'WS_EX_LAYERED va impostato come stile per ottenere l'alfa
style = GetWindowLong(hwnd, GWL_EXSTYLE)
If Not (style And WS_EX_LAYERED = WS_EX_LAYERED) Then
style = style Or WS_EX_LAYERED
SetWindowLong(hwnd, GWL_EXSTYLE, style)
End If
'Imposto alfa (128)
SetLayeredWindowAttributes(hwnd, 0&, 128, LWA_ALPHA)
però nessuna trasparenza... nemmeno se imposto hwnd= Me.handle (però ha effetto il sendmessage quindi non sono problemi di handle).