程序关闭按钮实际上只关闭窗口
This commit is contained in:
parent
153432e048
commit
20782a7c24
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user