Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
Am I missing something: I can't seem to be able to query which window is active? I seem to be able to get the current model and the current window but this doesn't tell me which one is active. How does one do this?
How does one get the active window programmatically? There isn't a ProWindowActiveGet() and the window returned by ProWindowCurrentGet isn't necessarily the active one. Adding a listener for ProWindowChangePost doesn't help because although ProWindowCurrentGet called in the handler does appear to get the active window it also deletes/disables/resets the undo stack which is simply not acceptable.