Still looking for any assistance with this. Is there a different forum that I should post this in?
You could try asking/searching in the Creative Suite SDK or Extension Builder forums, you may get a response there since it sounds like the problem is with the CS Extension side of your hybrid extension. I'm afraid I can't think of a solution off the top of my head - others have had similar problems.
Sorry I can't be of more help,
Th CS SDK forum is probably better for CS Extension specific questions.
The correct way to handle it would probably be to listen for the standard StateChangeEvent fired when the panel is closed. If I recall correctly, the events are not fired correctly in Illustrator.
You can create a "close" event handler for your extension and do whatever you like in that handler. The close event is launched when the extension is closed. The problem is that no events are launched in Illy when the panel is closed. It remains in a ghost state. It "thinks" it's really open. You can try to work up the parents of the extension and attach an event listener to the StageManager (I think it's 4 levels up). I don't know if it will work...
You can also try to poll the status of the extension from your C++ plugin, but I'm not sure that you will get the correct status back.
The CSXS architecture in Illustrator is a mess. Most of the other apps are a lot better.
Innovations in Automation
Thank you both for your responses. I will see about moving/re-posting this in one of the other forums (I truly was at a loss of where to put this post).
I will also look some more at the other events that are fired off and see if any of those help. Polling was something that I had thought about trying but figured there had to be a better way of making this work.
Thanks again for your time.