From 0b8444d0eef50d1ee4e0d0b51e174fa5b447d802 Mon Sep 17 00:00:00 2001
From: xj qian <qianxj15@sina.com>
Date: 星期三, 17 七月 2024 17:50:35 +0800
Subject: [PATCH] base code

---
 jrj/project/business/BasicCode/AddUomGroup.cpp |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/jrj/project/business/BasicCode/AddUomGroup.cpp b/jrj/project/business/BasicCode/AddUomGroup.cpp
index 2327ddd..de861fc 100644
--- a/jrj/project/business/BasicCode/AddUomGroup.cpp
+++ b/jrj/project/business/BasicCode/AddUomGroup.cpp
@@ -41,8 +41,7 @@
 			CloseWindow();
 		else if (comdid == L"cb_ok")
 		{
-			control xc = new control;
-			xc.setNativePointer(GetControl(L"Txt"));
+			xcontrol xc = GetControl(L"Txt");
 			xstring name = xc.GetText();
 			xaserverarg arg;
 
@@ -96,8 +95,7 @@
 				if (note == L"修改")
 				{
 					xstring name = arg.GetArgString(L"GroupName");
-					control xc = new control;
-					xc.setNativePointer(GetControl(L"Txt"));
+					xcontrol xc = GetControl(L"Txt");
 					xc.SetText(name);
 				}
 				xstring id = arg.GetArgString(L"m_id");

--
Gitblit v1.9.3