From a4d2315ee4ca3f6177b4fb2526bed2feff3d89be Mon Sep 17 00:00:00 2001
From: lifan <2308045698@qq.com>
Date: 星期三, 22 十月 2025 16:52:58 +0800
Subject: [PATCH] update
---
jrj/project/business/SystemSettings/AddUserGroup.cpp | 26 +++++++++++---------------
1 files changed, 11 insertions(+), 15 deletions(-)
diff --git a/jrj/project/business/SystemSettings/AddUserGroup.cpp b/jrj/project/business/SystemSettings/AddUserGroup.cpp
index 978f2fa..9f6fb82 100644
--- a/jrj/project/business/SystemSettings/AddUserGroup.cpp
+++ b/jrj/project/business/SystemSettings/AddUserGroup.cpp
@@ -17,10 +17,10 @@
int wid;
xtreeview tv;
xdwgrid dw;
- xwin pwin;
+ xwin* pwin;
public:
- AddUserGroup(void* implPtr, HWND hWnd) :xwin(implPtr, hWnd) {}
+ AddUserGroup(void* implPtr, HWND hWnd) :xwin(implPtr, hWnd),pwin(nullptr) {}
public:
static AddUserGroup* CreateInstance(void* implPtr, void* hWnd)
{
@@ -40,19 +40,17 @@
return 1;
}
int AppendItem(xml x, KXMLDOMElement r, xstring item) {
- var e = x.createElement(item);
- control xc = new control;
- xc.setNativePointer(GetControl(item));
- e.text() = xc.GetText();
+ auto e = x.createElement(item);
+ xcontrol xc = GetControl(item);
+ e.settext(xc.GetText());
r.appendChild(e);
return 1;
}
int AppendAttrib(xml x, KXMLDOMElement r, xstring item) {
- var e = x.createElement(item);
+ auto e = x.createElement(item);
//xcontrol xc = GetControl(item);
- control xc = new control;
- xc.setNativePointer(GetControl(item));
- e.text() = xc.GetText();
+ xcontrol xc= GetControl(item);
+ e.settext(xc.GetText());
r.setAttribute(item, xc.GetText());
return 1;
}
@@ -69,7 +67,7 @@
xaserverarg arg;
x.loadXML(L"<row/>");
- var r = x.documentElement();
+ auto r = x.documentElement();
xstring gpguid;
if (p.note == L"修改")
{
@@ -88,8 +86,7 @@
arg.AddArg(L"content", x.xml());
if (xaserver::ExecXAction(GetServerUrl(), L"[update.Usergroup.xa]", arg.GetString()) == 1)
{
- control xc = new control;
- xc.setNativePointer(GetControl(L"JobName"));
+ xcontrol xc = GetControl(L"JobName");
//p.tv.Redraw();
if (p.note == L"修改")
{
@@ -136,8 +133,7 @@
}
int SetItem(xstring value, xstring item) {
- control xc = new control;
- xc.setNativePointer(GetControl(item));
+ xcontrol xc = GetControl(item);
xc.SetText(value);
return 1;
}
--
Gitblit v1.9.3