Thank you for your response. I have tried the following code
VB Code:
Private Const WM_GETTEXT = &HD
Private Const WM_GETTEXTLENGTH = &HE
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Private Function GetText(WindowHandle As Long) As String
and the information I am looking for doesn't seem to be retrievable through the GetWindowText API
(as it did not appear in any of the 30,000 or so windows that it found)!
I am not actually sure whether what I want to do is possible.
By way of comparison if I view a Microsoft Word Document then I can determine that the main document body is in a control of class
_WwG, and currently has a handle of &H70506
Yet despite the document containing visible text the GetWindowText function returns "".
As you may have gathered my understanding of this whole area is pretty poor so any help would be gratefully received!
Thanks a lot for your time.
Martin
Last edited by MartinSmith; Aug 31st, 2001 at 06:24 AM.