IRCForumları - IRC ve mIRC Kullanıcılarının Buluşma Noktası

IRCForumları - IRC ve mIRC Kullanıcılarının Buluşma Noktası (https://www.ircforumlari.net/)
-   Visual Basic (https://www.ircforumlari.net/visual-basic/)
-   -   İmlecin Yanında Resim (https://www.ircforumlari.net/visual-basic/124749-imlecin-yaninda-resim.html)

Cemalizim 21 Temmuz 2008 19:05

İmlecin Yanında Resim
 
PHP- Kodu:

Private Declare Function BitBlt Lib "gdi32" (ByVal hDestDC As LongByVal X As LongByVal Y As LongByVal nWidth As LongByVal nHeight As LongByVal hSrcDC As LongByVal xSrc As LongByVal ySrc As LongByVal dwRop As Long) As Long
Dim NewX
Dim SCRWID

Private Sub Command1_Click()
Cls
MousePointer 
vbDefault

Command1
.Visible False
Command2
.Visible False
Call Anim
End Sub

Private Sub ick()
If 
Command1.Visible False Then Exit Sub
MousePointer 
2
Beep
End Sub

Private Sub Command2_Click()
Call ick

End Sub

Private Sub Form_Load()
NewX = -170
SCRWID 
Screen.Width 15
yy 
80
End Sub

Private Sub Form_MouseMove(Button As IntegerShift As IntegerAs SingleAs Single)
If 
MousePointer vbDefault Or Command1.Visible False Then Exit Sub
Static asd As Boolean
Dim re 
As Long
Dim w 
As Long
Dim h 
As Long
Static xx
Static yy
PicUfo.ScaleWidth
PicUfo.ScaleHeight
If asd True Then
re 
BitBlt(AltBitBlt.hDCxxyywhPicture1.hDC00vbSrcCopy)
End If
re BitBlt(Picture1.hDC00whAltBitBlt.hDCXYvbSrcCopy)
re BitBlt(AltBitBlt.hDCXYwhPicUfoMask.hDC00vbSrcAnd)
re BitBlt(AltBitBlt.hDCXYwhPicUfo.hDC00vbSrcPaint)
AltBitBlt.Refresh
xx 
X
yy 
Y
asd 
True
End Sub

Private Sub Form_Unload(Cancel As Integer)
End
End Sub

Private Sub Timer1_Timer()
PaintPicture PicUfoMaskNewX80, , , , , , , vbSrcAnd
PaintPicture PicUfo
NewX80, , , , , , , vbSrcPaint '(Or vbSrcInvert)
NewX = NewX + 5: If NewX > SCRWID Then NewX = -170
End Sub

Private Sub Anim()
Static asd As Boolean
Static yy
Dim re As Long
Dim w As Long
Dim h As Long
w = PicUfo.ScaleWidth
h = PicUfo.ScaleHeight
yy = 80
Do
If asd = True Then
re = BitBlt(AltBitBlt.hDC, NewX, yy, w, h, Picture1.hDC, 0, 0, vbSrcCopy)
End If

NewX = NewX + 5: If NewX > SCRWID Then NewX = -170
re = BitBlt(Picture1.hDC, 0, 0, w, h, AltBitBlt.hDC, NewX, yy, vbSrcCopy)
asd = True
re = BitBlt(AltBitBlt.hDC, NewX, yy, w, h, PicUfoMask.hDC, 0, 0, vbSrcAnd)
re = BitBlt(AltBitBlt.hDC, NewX, yy, w, h, PicUfo.hDC, 0, 0, vbSrcPaint)
AltBitBlt.Refresh
DoEvents
Loop

End Sub 

Alıntı


Tüm Zamanlar GMT +3 Olarak Ayarlanmış. Şuanki Zaman: 02:25.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO
Copyright ©2004 - 2025 IRCForumlari.Net Sparhawk