Doorzichtigheid?

Status
Niet open voor verdere reacties.

HUKED

Gebruiker
Lid geworden
3 apr 2007
Berichten
166
Hey,

Is er een manier om mijn programmat'je doorzichtig te laten zijn?
bijvoorbeeld dat je je bureablad ar acher ziet.
 
Nee, ik bedoel dat mijn eigen application transparant is.
kan dat?
 
daar gaat die tut. over:p

vb6 >:
form1
Code:
Private Declare Function SendMessage Lib "User32" Alias "SendMessageA" _
(ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, _
 lParam As Any) As Long
 Private Declare Sub ReleaseCapture Lib "User32" ()
 Private Declare Function GetWindowLong Lib "User32" Alias _
 "GetWindowLongA" (ByVal hWnd As Long, ByVal nIndex As Long) As Long
 Private Declare Function SetWindowLong Lib "User32" Alias _
"SetWindowLongA" (ByVal hWnd As Long, ByVal nIndex As Long, _
ByVal dwNewLong As Long) As Long
Private Declare Function SetLayeredWindowAttributes Lib "User32" _
(ByVal hWnd As Long, ByVal crKey As Long, ByVal bAlpha As Byte, _
 ByVal dwFlags As Long) As Long
 
 Const WM_NCLBUTTONDOWN = &HA1
 Const HTCAPTION = 2
 Const WS_EX_LAYERED = &H80000
 Const GWL_EXSTYLE = (-20)
 Const LWA_ALPHA = &H2
 Const LWA_COLORKEY = &H1
Private Sub Form_Load()
DarkMe
End Sub
Public Function DarkMe()
Dim rtn As Long
rtn = GetWindowLong(hWnd, GWL_EXSTYLE)
rtn = rtn Or WS_EX_LAYERED
  SetWindowLong hWnd, GWL_EXSTYLE, rtn '
  SetLayeredWindowAttributes hWnd, 0, 200, LWA_ALPHA
End Function
 
Doorzichtigheid de oplossing

De oplossing:

Me.Opacity = "" getal tussen de 100 & 0 "" %

hIPpJe
 
Ja, of niet natuurlijk. Ik weet zeker dat het iig in vb < 6 niet bestaat.
Of heeft .net/200X een *alweer* nutteloze standaard erin gezet? :p
 
form1 > eigenschappen > transparencykey > kleur die doorzichtig moet zijn.
 
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan