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?

publicaciones de 2 / 0 nuevos
Último envío
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.

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.

John

Deje un comentario

Por favor inicie sesión para agregar un comentario. ¿No es socio? Únase ya