is it possible to get the handle of a specific component in an unknown number of window opened by the same program? The program foo.exe contains a button that, when clicked, opens a form containing a Label and an Image ( with no upper bound on the number of forms opened). Is possible to get all the handle of the Label component of every window op开发者_高级运维enend, given the process name "foo" ?
with EnumWindows
or FindWindow
you can find the application window depending if you already know the title or the process name or so on, you can even use FindWindowLike
if you really do not much of it.
Once in one way or another you know the windows handle of your window, with GetDlgItem
you can get info about your child controls.
精彩评论