| عناوین بحث ها | ارسال کننده | پاسخها | بازدید | بروز رسانی | اولویت | |
|---|---|---|---|---|---|---|
|
|
1
|
4
|
87/7/18 (10:39)
|
|
||
|
|
87
|
386
|
87/7/17 (21:49)
|
|
||
|
|
0
|
2
|
87/7/8 (10:22)
|
|
||
|
|
1
|
4
|
87/7/1 (00:13)
|
|
||
|
|
1
|
12
|
87/7/1 (00:10)
|
|
||
|
|
4
|
15
|
87/6/19 (23:07)
|
|
||
|
|
4
|
24
|
87/6/15 (02:04)
|
|
||
|
|
1
|
10
|
87/6/8 (14:42)
|
|
||
|
|
0
|
9
|
87/6/3 (02:01)
|
|
||
|
|
4
|
36
|
87/6/3 (01:24)
|
|
عنوان بحثساخت فرمم شیشه ای!!!!! 26 فروردین 84 - 14:16 | |
با این کد شما می توانید فرم خود را شیشه ای کنید... Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex 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 Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long Private Const GWL_EXSTYLE = (-20) Private Const LWA_ALPHA = &H2 Private Const WS_EX_LAYERED = &H80000 ' ######### FUNCTION ################## Public Function Trans(ByVal hwnd As Long, Perc As Integer) As Long Dim Msg As Long On Error Resume Next If Perc < 0 Or Perc > 255 Then Trans = 1 Else Msg = GetWindowLong(hwnd, GWL_EXSTYLE) Msg = Msg Or WS_EX_LAYERED SetWindowLong hwnd, GWL_EXSTYLE, Msg SetLayeredWindowAttributes hwnd, 0, Perc, LWA_ALPHA Trans = 0 End If If Err Then Trans = 2 End If End Function ______________________________________________________________________________- Private Sub Form_Activate() Trans Form1.hwnd, 100 End Sub | |
پاسخ ها



