John,
There really is no way for a control to say "this is what makes me
unique". You could check the types of the controls (the window class) from
the handle, but that's about it. You would have to compare properties of
the individual controls to see what exactly they are doing.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
(E-Mail Removed)
"John F" <(E-Mail Removed)> wrote in message
news:14941888-31D1-4AE5-8B08-(E-Mail Removed)...
> Hello,
>
> I'm scraping the screen of an unmanaged app using FindWindow and
> EnumChildWindows API calls. Does anyone know of a way to uniquely
> identify
> the controls that EnumChildWindows returns? Window handles change and the
> controls I'm iterating through don't have tab stops. Screen scraping is
> useless unless we can constantly identify which controls are returning
> data.
>
> Thanks,
> John F.