新增表格控件前的备份

This commit is contained in:
睿 安
2026-01-27 17:45:50 +08:00
parent 9fe2fe5874
commit bcbf890ebd
3 changed files with 14 additions and 11 deletions

View File

@@ -1,6 +1,7 @@
#include "pch.h"
#include "mainForm.h"
void mainForm::OnNotify(Control* sender, EventArgs& args)
{
UIString btnName = sender->Name; // 控件id
@@ -49,9 +50,9 @@ void mainForm::OnNotify(Control* sender, EventArgs& args)
}
else if (btnName == "btnAdminTemp") { //管理页面的测试按钮
TextBox* textAdmin = (TextBox*)FindControl("textAdminOutput"); //获取输出框
//textAdmin->Insert(L"\n测试成功", true);
if (textAdmin) {
textAdmin->Insert(L"\n测试成功!",true);
textAdmin->GetScrollBar()->ScrollTo(1.0);
}
}
}

View File

@@ -4,17 +4,19 @@
using namespace ezui;
// 主窗口
class mainForm :public LayeredWindow
{
private:
//ui管理类
UIManager umg;
protected:
virtual void OnNotify(Control* sender, EventArgs& args)override;//重载事件通知
virtual void OnClose(bool& close)override;//当窗口关闭的时候
public:
//ui管理类
UIManager umg;
mainForm();
virtual ~mainForm();
};