no message

This commit is contained in:
zcy 2022-02-06 21:04:26 +08:00
parent a8e4de2236
commit fa11185174

View File

@ -166,23 +166,6 @@ void UartForm::Init()
});
}
auto mBtnSaveLua = static_cast<ui::Button*>(FindSubControl(L"btn_save_lua"));
if (mBtnSaveLua != nullptr) {
mBtnSaveLua->AttachClick([this](ui::EventArgs*) ->bool {
std::cout << "保存lua脚本\r\n";
std::string lua = wstring2string(mEditLua->GetText());
if (0 == this->mLua->UpdateScript(lua)) {
this->mLuaScript = lua;
}
else {
MessageBox(0, L"lua脚本错误", L"", 0);
return true;
}
std::cout << lua.c_str() << "\r\n";
return true;
}
);
}
}
void UartForm::UpdateRecvEdit()