From e83354f83321f0037c641ad09f310277cdc80295 Mon Sep 17 00:00:00 2001
From: xj qian <qianxj15@sina.com>
Date: 星期五, 12 七月 2024 08:01:26 +0800
Subject: [PATCH] update data total

---
 jrj/project/analysis/DataVanalysisWin.cpp |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/jrj/project/analysis/DataVanalysisWin.cpp b/jrj/project/analysis/DataVanalysisWin.cpp
index a8ab246..df20830 100644
--- a/jrj/project/analysis/DataVanalysisWin.cpp
+++ b/jrj/project/analysis/DataVanalysisWin.cpp
@@ -11,14 +11,14 @@
 class __declspec(dllexport) DataVanalysisWin : public xwin
 {
 public:
-	DataVanalysisWin(void* implPtr, HWND hWnd) :xwin(implPtr, hWnd) {}
+	DataVanalysisWin(void* implPtr, HWND hWnd) :xwin(implPtr, hWnd),dw_data(0){}
 	static DataVanalysisWin* CreateInstance(void* implPtr, void* hWnd)
 	{
 		return new DataVanalysisWin(implPtr, (HWND)hWnd);
 	}
 public:
 	xhtml	ole_html;
-	xdwgrid  dw_data;
+	xdwgrid*  dw_data;
 	xnode	m_agentNode;	//Agent Condition
 	xstring   htmlStr;
 	xexcel   excel;
@@ -58,7 +58,7 @@
 		HCURSOR hCursor = xutil::SetCursorWait();
 		if (comdid == L"xmConfig")
 		{
-			xstring str = dw_data.DataAnalysis(L"");
+			xstring str = dw_data->DataAnalysis(L"");
 			if (str != L"")
 			{
 				ole_html.LoadHtml(str);
@@ -117,7 +117,7 @@
 	int onload()
 	{
 		htmlStr = L"";
-		ole_html = GetControl(L"ole_html");
+		ole_html = GetControl(L"ole_1");
 		if (!GetWinParam()) return 1;
 		SetArg();
 		xaserverarg arg = GetArg();
@@ -127,7 +127,7 @@
 			htmlStr = str;
 			ole_html.LoadHtml(str);
 		}
-		dw_data = *(xdwgrid*)arg.GetParam(L"obj");
+		dw_data = (xdwgrid*)arg.GetParam(L"obj");
 
 		OnAttachEvent();
 

--
Gitblit v1.9.3