]> Creatis software - creaContours.git/blobdiff - appli/wxContourGUIExample/wxContourGUIExample.cxx
#2887 creaContours Feature New Normal - Avoid vtk messages window in Windows
[creaContours.git] / appli / wxContourGUIExample / wxContourGUIExample.cxx
index 38a8b9fe33e197a08759e3e99d8a2902aea0c5bc..46c896e3b8c4c41e118a0938c7dcf7e8d53bff83 100644 (file)
@@ -82,6 +82,8 @@
 
 #include <stdlib.h>
 
+
+
 wxContourMainFrame* wxTheApplication::frame = 0;
 
 //----------------------------------------------------------------------------------------------------------------
@@ -113,8 +115,14 @@ void wxAppConsole::OnAssertFailure(char const *,int,char const *,char const *,ch
 }
 #endif
 
+
+
 bool wxTheApplication :: OnInit()
 {
+       vtkOutputWindowCreaContour *outputWindowCreaContour= vtkOutputWindowCreaContour::New();
+       vtkOutputWindow::SetInstance( outputWindowCreaContour );
+       outputWindowCreaContour->Delete();
+
        wxString infoImage;
        wxInitAllImageHandlers();