Réponse acceptée !
Ben tu dois chopper le handle
Public Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long Private Declare Function MoveWindow Lib "user32" (ByVal hwnd As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal bRepaint As Long) As Long Public Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long Public Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long Public Declare Function SetLayeredWindowAttributes Lib "user32" (ByVal hwnd As Long, ByVal crKey As Long, ByVal bAlpha As Byte, ByVal dwflags As Long) As Long
Dim handle as long handle=findwindow(vbnullstring,"Le nom de la fenêtre a modifier")
Public Function Position(ByVal nHwnd As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long) MoveWindow nHwnd, x, y, nWidth, nHeight, 1 End Function
Par "visiblité sur l'écran" je pense que tu parles de transparence
'alphaAmount entre 0 et 255
Public Sub MakeWindowTransparent(ByVal hwnd As Long, ByVal alphaAmount As Byte) Dim lStyle As Long lStyle = GetWindowLong(hwnd, GWL_EXSTYLE) lStyle = lStyle Or WS_EX_LAYERED SetWindowLong hwnd, GWL_EXSTYLE, lStyle SetLayeredWindowAttributes hwnd, 0, alphaAmount, LWA_ALPHA End Sub
@+ Daetips
|