From 20782a7c2409a27518e85fb64b50cca0b84c32f5 Mon Sep 17 00:00:00 2001 From: Cheney Date: Tue, 20 Aug 2024 20:57:21 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E5=85=B3=E9=97=AD=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E5=AE=9E=E9=99=85=E4=B8=8A=E5=8F=AA=E5=85=B3=E9=97=AD?= =?UTF-8?q?=E7=AA=97=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aardiowin/main.aardio | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/aardiowin/main.aardio b/aardiowin/main.aardio index 36a49c8..5c98316 100644 --- a/aardiowin/main.aardio +++ b/aardiowin/main.aardio @@ -66,10 +66,29 @@ mainForm.wndproc = function(hwnd,message,wparam,lparam){ mainForm.show(false); //隐藏窗口 return true;//阻击默认消息传递,取消最小化过程 } + + if( wparam == 0xF060/*_SC_MINIMIZE*/ ){ //用户点击了最小化按钮 + mainForm.show(false); //隐藏窗口 + return true;//阻击默认消息传递,取消最小化过程 + } } } } +// 后台 +if( gConfig.backend != "" ) { + gLog.print("backend=" , gConfig.backend) + thread.invoke(function(mainForm){ + // 线程执行的代码 + import process.popen; + var prcs = process.popen(gConfig.backend); + prcs.logResponse(); + + }, mainForm); +} + + + // 前端 import web.view; var theView = web.view(mainForm);