xj qian
2024-12-05 bd09edf1b441dcc6ab098f277bea86a72c009879
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()