In my (PowerBuilder) application, I'd like to be able to determine the graphicobject
object which corresponds to a given window handle.
Simply iterating over the Control[]
array and comparing the value returned by the Handle()
function for each of the child controls doesn't work, since not all objects in my application are children of the main window (consider of login dialogs).
Any PowerScript or C/C++ solution would be acceptable.
Is there maybe some window message I could send to window handles, and this message is only understood by PowerBuilder windows, which would the respond with their internal object name, or the like?