VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

'Get handle of the window at mouse cursor position using WindowFromPoint API

Karthikeyan  (187 Submissions)   Windows API Call/Explanation   Visual Basic 5.0   Unknown Difficulty   Tue 23rd January 2001   Mon 8th February 2021

'Get handle of the window at mouse cursor position using WindowFromPoint API

API Declarations


x As Long
y As Long
End Type
Private Declare Function WindowFromPoint Lib "user32" (ByVal xPoint As Long, ByVal yPoint As Long) As Long
Private Declare Function GetCursorPos Lib "user32" (lpPoint As POINTAPI) As Long
Private Declare Function GetClassName Lib "user32" Alias "GetClassNameA" (ByVal hwnd As Long, ByVal lpClassName As String, ByVal nMaxCount 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 'Get handle of the window at mouse cursor position using WindowFromPoint API (1(1 Vote))
'Get handle of the window at mouse cursor position using WindowFromPoint API.bas

'Get handle of the window at mouse cursor position using WindowFromPoint API Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters