0031668: Visualization - WebGL sample doesn't work on Emscripten 1.39
[occt.git] / src / IVtkDraw / IVtkDraw_Interactor.cxx
index 743caf9..67bcabe 100644 (file)
@@ -187,6 +187,10 @@ void IVtkDraw_Interactor::Initialize()
   this->Size[1] = aSize[1];
 }
 
+#ifdef _WIN32
+LRESULT CALLBACK WndProc(HWND theHWnd, UINT theUMsg, WPARAM theWParam, LPARAM theLParam);
+#endif
+
 //===========================================================
 // Function : Enable
 // Purpose  :
@@ -249,7 +253,7 @@ void IVtkDraw_Interactor::MoveTo (Standard_Integer theX, Standard_Integer theY)
       Handle(Message_Messenger) anOutput = Message::DefaultMessenger();
       if (!myPipelines->IsBound(aShapeID))
       {
-        anOutput << "Warning: there is no VTK pipeline registered for highlighted shape" << Message_EndLine;
+        anOutput->SendWarning() << "Warning: there is no VTK pipeline registered for highlighted shape" << std::endl;
         continue;
       }
 
@@ -314,7 +318,7 @@ void IVtkDraw_Interactor::OnSelection()
       Handle(Message_Messenger) anOutput = Message::DefaultMessenger();
       if (!myPipelines->IsBound (aShapeID))
       {
-        anOutput << "Warning: there is no VTK pipeline registered for picked shape" << Message_EndLine;
+        anOutput->SendWarning() << "Warning: there is no VTK pipeline registered for picked shape" << std::endl;
         continue;
       }