VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Capture the window under mouse into the form using GetDC,BitBlt,GetCursorPos and WindowFromPoint AP

Karthikeyan  (187 Submissions)   Windows API Call/Explanation   Visual Basic 5.0   Unknown Difficulty   Sat 17th February 2001   Mon 8th February 2021

Capture the window under mouse into the form using GetDC,BitBlt,GetCursorPos and WindowFromPoint API

API Declarations


Private Type POINTAPI
X As Long
Y As Long
End Type
Private Declare Function GetDC Lib "user32" (ByVal hwnd As Long) As Long
Private Declare Function BitBlt Lib "gdi32" (ByVal hDestDC As Long, ByVal X As Long, ByVal Y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal dwRop As Long) As Long
Private Declare Function GetCursorPos Lib "user32" (lpPoint As POINTAPI) As Long
Private Declare Function WindowFromPoint Lib "user32" (ByVal xPoint As Long, ByVal yPoint As Long) As Long
Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal X As Long, ByVal Y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long

Rate Capture the window under mouse into the form using GetDC,BitBlt,GetCursorPos and WindowFromPoint AP (2(2 Vote))
Capture the window under mouse into the form using GetDC,BitBlt,GetCursorPos and WindowFromPoint AP.bas

Capture the window under mouse into the form using GetDC,BitBlt,GetCursorPos and WindowFromPoint AP Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters