From bd09edf1b441dcc6ab098f277bea86a72c009879 Mon Sep 17 00:00:00 2001
From: xj qian <qianxj15@sina.com>
Date: 星期四, 05 十二月 2024 17:30:21 +0800
Subject: [PATCH] update

---
 jrj/xframe/devloper/XDevEditXQuery.cpp |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/jrj/xframe/devloper/XDevEditXQuery.cpp b/jrj/xframe/devloper/XDevEditXQuery.cpp
index 9d50fc8..634d674 100644
--- a/jrj/xframe/devloper/XDevEditXQuery.cpp
+++ b/jrj/xframe/devloper/XDevEditXQuery.cpp
@@ -7,12 +7,13 @@
 #include <xcontrol/xdwgrid.hpp>
 #include <xcontrol/xsedit.hpp>
 #include <xcontrol/xcombobox.hpp>
+#include "XDevEditPage.hpp"
 
 using xml = KXMLDOMDocument;
-class export XDevEditXQuery : public xwin
+class export XDevEditXQuery : public XDevEditPage
 {
 	public:
-	XDevEditXQuery(void* implPtr, HWND hWnd) :xwin(implPtr, hWnd) {}
+	XDevEditXQuery(void* implPtr, HWND hWnd) :XDevEditPage(implPtr, hWnd) {}
 public:
 	static XDevEditXQuery* CreateInstance(void* implPtr, void* hWnd)
 	{
@@ -68,7 +69,7 @@
 			xstring v = e1.getAttribute(L"source");
 			xc.SetText(L"" + v);
 			xc = GetControl(L"linkname");
-			xstring v = e1.getAttribute(L"link");
+			v = e1.getAttribute(L"link");
 			xc.SetText(L"" + v);
 
 			KXMLDOMElement e2 = e.selectSingleNode(L"paras");
@@ -125,7 +126,7 @@
 		e.appendChild(e1);
 		root.documentElement().appendChild(e);
 
-		xml y ();
+		xml y;
 		dw_list.DwUpdateTo(y);
 		root.documentElement().appendChild(y.documentElement());
 		//trace(y.xml());
@@ -249,6 +250,8 @@
 	AttachEvent(L"WM_XCOMMAND",(FEvent)&XDevEditXQuery::OnXCommand);
 	//获取焦点事件,用于重置工具条
 	AttachEvent(L"WM_SETFOCUS", (FEvent)&XDevEditXQuery::OnSetFocus);
+
+	return 1;
 }
 
 int OnInitial()

--
Gitblit v1.9.3