LiFan
2025-02-13 03ef0b51103c735077c784c7df81ae2bcc1599ab
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)
   {
@@ -24,6 +25,7 @@
   xnode   m_agentNode;   //Agent Condition
   xstring   m_agentCond;   //Agent Node
public:
   int SetAgent()
   {
      /*
@@ -68,7 +70,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 +127,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 +251,8 @@
   AttachEvent(L"WM_XCOMMAND",(FEvent)&XDevEditXQuery::OnXCommand);
   //获取焦点事件,用于重置工具条
   AttachEvent(L"WM_SETFOCUS", (FEvent)&XDevEditXQuery::OnSetFocus);
   return 1;
}
int OnInitial()