From 77a3f646292a1b2679807dbb3d7416e7dc360d49 Mon Sep 17 00:00:00 2001
From: LiFan <2308045698@qq.com>
Date: 星期四, 07 十一月 2024 09:54:19 +0800
Subject: [PATCH] update

---
 jrj/project/total3/ViewTotalWin.cpp |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/jrj/project/total3/ViewTotalWin.cpp b/jrj/project/total3/ViewTotalWin.cpp
index a94ff6b..768456e 100644
--- a/jrj/project/total3/ViewTotalWin.cpp
+++ b/jrj/project/total3/ViewTotalWin.cpp
@@ -18,8 +18,7 @@
 public:
 	static ViewTotalWin* CreateInstance(void* implPtr, void* hWnd)
 	{
-		ViewTotalWin* pWin = new ViewTotalWin(implPtr, (HWND)hWnd);
-		return pWin;
+		return new ViewTotalWin(implPtr, (HWND)hWnd);
 	}
 public:
 	xdwgrid	dw_list;
@@ -120,7 +119,7 @@
 				Content = t.selectSingleNode(L"Content").text();
 			}
 
-			xaserverarg arg1 ;
+			xaserverarg arg1 =GetArg();
 			arg1.AddArg(L"value", Content);
 			OpenWindow(L"dev:xpage[memo.edit.new.vx]", arg1);
 			return 1;
@@ -137,7 +136,7 @@
 				if (argUrl != L"")
 				{
 					xaserverarg ar ;
-					ar.setNativePointer(ar.CreateInstance());
+					//ar.setNativePointer(ar.CreateInstance());
 					ar.AddArg(L"argurl", argUrl);
 					if (argStr != L"")
 						ar.AddArg(L"arg", argStr);
@@ -193,7 +192,7 @@
 		for (int i = 1; i < dw.GetColumnCount(); i++)
 		{
 			xstring colname = dw.GetColumnName(i);
-			if (str.find(L"!" + colname + L",L") >= 0)
+			if (str.find(L"!" + colname + L",") >= 0)
 			{
 				dw.SetColumnState((LPCTSTR)colname.c_str(), false);
 			}
@@ -496,7 +495,7 @@
 			{
 				KXMLDOMElement rpt = nlist.item(i);
 				xstring name = rpt.getAttribute(L"name");
-				xc.AddItem( name, rpt);
+				xc.AddItem( name, rpt.ptr());
 				if (i == 0) xc.SetText(name);
 				if (i == 0) rptEle = rpt;
 			}

--
Gitblit v1.9.3