From 5bbf43c1b146439ab882815c12ed6292f1d7b4df Mon Sep 17 00:00:00 2001
From: dh_ackergaul <dh_ackergaul@dh-software.de>
Date: Di, 23 Jun 2026 09:44:49 +0200
Subject: [PATCH] Update _furnview - 23.6.2026, 09:44:32 [LL]

---
 manufacturer/_furnview/_global/html/h/pingTest.html |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/manufacturer/_furnview/_global/html/h/pingTest.html b/manufacturer/_furnview/_global/html/h/pingTest.html
index bf73535..8ff68b0 100644
--- a/manufacturer/_furnview/_global/html/h/pingTest.html
+++ b/manufacturer/_furnview/_global/html/h/pingTest.html
@@ -8,6 +8,25 @@
   <script>
     const PORT = new URL(document.location.href).searchParams.get("port");
 
+    // ===== DhPostMessageDll In-Process Ping-Pong (kein localhost-Webserver noetig) =====
+    // Antwort von C++ kommt hier an (erwartet "pong:ping").
+    window.dhOnMessage = function (msg) {
+      if (msg == "pong:ping");
+      document.title = "#success#CefSharp.PostMessage.Ping#";
+    };
+    function dhSendPing() {
+      try {
+        if (window.CefSharp && window.CefSharp.PostMessage) {
+          CefSharp.PostMessage("ping");
+        } else {
+          document.title = "#failure#CefSharp.PostMessage nicht verfuegbar#";
+        }
+      } catch (e) {
+        document.title = "#failure#CefSharp.PostMessage " + e.message + "#";
+      }
+    }
+    window.addEventListener("load", dhSendPing);
+
     function pingTestLocal(callback) {
       try {
         var xhr = new XMLHttpRequest();

--
Gitblit v1.9.3