LiFan
2024-07-11 152fd55b098b38736e5a02db5b5beb17c3afdf6c
jrj/project/total3/ViewTotalWin.cpp
@@ -7,7 +7,7 @@
#include <xcontrol/xcombobox.hpp>
#include <vbusiness/vutil/publiccode.vutil.vbusiness.hpp>
#include "viewobject/view.base.hpp""
#include "viewobject/view.base.hpp"
using xml = KXMLDOMDocument;
@@ -15,11 +15,13 @@
{
public:
   ViewTotalWin(void* implPtr, HWND hWnd) :xwin(implPtr, hWnd) {}
public:
   static ViewTotalWin* CreateInstance(void* implPtr, void* hWnd)
   {
      return new ViewTotalWin(implPtr, (HWND)hWnd);
      ViewTotalWin* pWin = new ViewTotalWin(implPtr, (HWND)hWnd);
      return pWin;
   }
public:
   xdwgrid   dw_list;
   xoffice    dw_office;
   xcell      dw_cell;
@@ -193,7 +195,7 @@
         xstring colname = dw.GetColumnName(i);
         if (str.find(L"!" + colname + L",L") >= 0)
         {
            dw.SetColumnState(colname, false);
            dw.SetColumnState((LPCTSTR)colname.c_str(), false);
         }
      }
      return 1;
@@ -391,6 +393,8 @@
      AttachEvent(L"dw_report", L"DWV_CLICKED", (FEvent)&ViewTotalWin::OnDWClick);
      AttachEvent(L"dw_report", L"DWV_ROWFOCUSCHANGED", (FEvent)&ViewTotalWin::OnRowChanged);//绑定行更改触发事件OnRowChanged
      AttachEvent(L"dw_report", xstring(0x400 + 81), (FEvent)&ViewTotalWin::OnRetrieveFinished);
      return 1;
   }
   int  OnRetrieve(xstring dataurl, xstring argstr)