Once you have the window handle you can get all this additional information using the windows API. There are a number of calls, all of which are wrapped up in this ApiWindow class.
To use it:
VB Code:
Dim wndTest As New ApiWindow wndTest.hwnd = WindowFromPoint(ptThis) Debug.print wndTest.WNDCLASS.lpszClassname 'eg. ThunderList is a VB listbox etc... Debug.Print wndTest.WindowText 'if its a textbox this is the text , etc...
There are a whole raft of other properties - which you would like to know about?
HTH,
Duncan




Reply With Quote