Mouse Formdan Dışarı Çıkamaz

Visual Basic & Action script Mouse Formdan Dışarı Çıkamaz Programlama hakkında bilgi paylaş; Private Type RECT left As Long top As Long right As Long bottom As Long End Type Private Type POINT ...
Cevapla
 
Seçenekler
  #1  
Arama 25-01-2008, 06:07
Banlı
Üyelik Tarihi: 18/09/07
Mesajlar: 1.902
 
     WS-Ticareti: (1)
Blog Yazıları: 1
Teşekkürleri: 0
20 Msg. 27 Tşkr.
Rep Gücü: 0 B737 rep gücü epey yüksek

Mouse Formdan Dışarı Çıkamaz

Private Type RECT
left As Long
top As Long
right As Long
bottom As Long
End Type

Private Type POINT
x As Long
y As Long
End Type


Private Declare Sub ClipCursor Lib “user32″ (lpRect As Any)

Private Declare Sub GetClientRect Lib “user32″ (ByVal hWnd As Long, lpRect As RECT)
Private Declare Sub ClientToScreen Lib “user32″ (ByVal hWnd As Long, lpPoint As POINT)
Private Declare Sub OffsetRect Lib “user32″ (lpRect As RECT, ByVal x As Long, ByVal y As Long)
Private Sub Command1_Click()
Dim client As RECT
Dim upperleft As POINT
GetClientRect Me.hWnd, client
upperleft.x = client.left
upperleft.y = client.top
ClientToScreen Me.hWnd, upperleft
OffsetRect client, upperleft.x, upperleft.y
ClipCursor client
End Sub

Private Sub Command2_Click()
ClipCursor ByVal 0&
End Sub

Private Sub Form_Load()
Command1.Caption = “Mause sınırla”
Command2.Caption = “Serbest bırak”
End Sub

Private Sub Form_Unload(Cancel As Integer)
ClipCursor ByVal 0&
End Sub
Alıntı ile Cevapla
Cevapla


Seçenekler


Benzer Konular
Konu Konu Açanlar Forum Cevaplar Güncel Mesajlar
Formdan bilgi çekme (Textarea) B737 ASP 0 26-01-2008 03:50
Aynı formdan yapmak Celebrian Visual Basic & Action script 0 24-12-2007 11:10
Hesap Bilgilerini İçeri ve Dışarı Aktarma kadınca Google Adwords 0 10-12-2007 11:31
Cep telefonunuzun ekranını mouse olarak kullanın: Blue Mouse Mobile B737 Cep telefonu 0 18-11-2007 02:20
hoca: oğlum! çık dışarı! kadınca Geyik - Komik 1 17-11-2007 08:46

Siteye link vermek için alttaki kodu sitenize ekleyin
Ya da kodu Ctrl+C ile kopyalayın
Örnek görünüm: Webmaster Sitesi