FindWindowEx to find Child Window
Posted on 1997-02-26
am attempting to test for the existence of a child window with a specific
name using FindWindowEx, and I am coming up empty.
The parent form is of class TAFOSParent and the child is a TMainForm in the
example below. EditFile is the name of the child window I am looking for.
The FindWindow function does successfully find the handle of the parent
window. However, the only way I can get a child window handle from
FindWindowEx is to set the class name and window name pointers both to NIL,
and of course that handle is not to the window I am looking for. What may
I be doing wrong (I created the program that creates the window in
question, if the problem is likely there).