Programalama > VISUAL BASIC


Ort. 0
Puan ver:
'Modül'e

Type POINTAPI
X As Integer
Y As Integer
End Type

Type ConvertPOINTAPI
xy As Long
End Type

Declare Function SendMessage Lib "User"_
 (ByVal hWnd As Integer, ByVal wMsg As Integer,_
 ByVal wParam As Integer, ByVal lParam As Any) As Long
Declare Sub GetCursorPos Lib "User" (lpPoint As POINTAPI)
Global Const WM_LBUTTONUP = &H202
Global Const WM_SYSCOMMAND = &H112
Global Const MOUSE_MOVE = &HF012
'form'a
Sub Picture1_MouseDown (Button As Integer,_
 Shift As Integer, X As Single, Y As Single)
Dim mpos As POINTAPI
Dim p As ConvertPOINTAPI
Dim ret As Integer

Call GetCursorPos(mpos)
LSet p = mpos

ret = SendMessage(picture1.hWnd, WM_LBUTTONUP, 0, p.xy)
ret = SendMessage(Me.hWnd, WM_SYSCOMMAND, MOUSE_MOVE, p.xy)
End Sub


Yorumlar                 Yorum Yaz
Bu hazır kod'a ilk yorumu siz yapın!
KATEGORİLER
ASP - 240
ASP.NET - 24
C# - 75
C++ - 174
CGI - 8
DELPHI - 247
FLASH - 49
HTML - 536
PASCAL - 246
PERL - 11
PHP - 160
WML - 9
XML - 2
Copyright © 2002 - 2024 Hazır Kod - Tüm Hakları Saklıdır.
Siteden yararlanırken gizlilik ilkelerini okumanızı tavsiye ederiz.
hazirkod.com bir İSOBİL projesidir.