CAViewer Class of Array Visualizer

CAViewer Class of Array Visualizer

We are displaying the Array viewer using a CAViewer object in a Visual C++ multithreaded multidocument program. We are wondering how our C++ program can detect when the user has closed the Array Viewer window. Using a pause routine does not work for our purpose since the user would be locked out of doing other things in our GUI while the Array Viewer is running.

Also, what do the GetCloseOnRelease and SetCloseOnRelease methods from CAViewer do, as they are not in the documentation?

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

When a user closes an instance of the Array Viewer that has been invoked programmatically, the Viewer window is hidden, but the process is still running. You could call CAViewer::IsVisible () periodically to see if the user has closed the Viewer.

By the way, it's important in a multithreaded program that only one thread interact with the CAViewer class; it's not thread-safe.

CloseOnRelease is a property that when set, causes the Viewer to exit when the interface is released, ie. when the CAViewer class is destroyed. If not set, the Viewer will keep on running after the app that invoked it exits.


Leave a Comment

Please sign in to add a comment. Not a member? Join today