G
Guest
I have a question about EnumChildWindows(). Currently I'm using this API
function to iterate through all the controls in another application. In my
call back function I call SendMessage() and pass WM_GETTEXT to return the
text in each child control. Everything works perfectly.
My question pertains to the Z-Order and expectations. Currently I take all
the values I pull out of this 3rd party app and populate a string array. On
my machine everything returns in the same order from the EnumChildWindows
call consistantly in the same order. I believe that if the 3rd party .EXE
that I'm pulling from changes (re-compiled, code changes, etc...) I can
expect that the return order of things might/will change. Can I expect that
if the .EXE doesn't change that I will always get things back in the same
order on every system in all circumstances?
Basically can I rely on index location within my array as always containing
the information of a specific control?
Thanks,
John
function to iterate through all the controls in another application. In my
call back function I call SendMessage() and pass WM_GETTEXT to return the
text in each child control. Everything works perfectly.
My question pertains to the Z-Order and expectations. Currently I take all
the values I pull out of this 3rd party app and populate a string array. On
my machine everything returns in the same order from the EnumChildWindows
call consistantly in the same order. I believe that if the 3rd party .EXE
that I'm pulling from changes (re-compiled, code changes, etc...) I can
expect that the return order of things might/will change. Can I expect that
if the .EXE doesn't change that I will always get things back in the same
order on every system in all circumstances?
Basically can I rely on index location within my array as always containing
the information of a specific control?
Thanks,
John