xj qian
2024-07-01 2ae36e271599ea723348132dd7c8a7e139162d18
jrj/project/printview/Maint.Template.PrintEx.cpp
@@ -2,12 +2,12 @@
#include <xcontrol/xtreeview.hpp>
#include <xcontrol/xdwgrid.hpp>
#include <xcontrol/xlayersheet.hpp>
#include <xcontrol/xcell.hpp>
#include "vbusiness/vframe/maint.vframe.vbusiness.hpp"
#include "viewobject/view.base.hpp"
using xml = KXMLDOMDocument;
class __declspec(dllexport) MaintTemplatePrintWin :  public xframe
   {
   public:
@@ -50,11 +50,10 @@
         SetAgent();
         return 1;
      }
}
      int SendCtrlCmd(xcontrol xc, xstring cmd)
      {
         win32::SendMessage(xc.GetId(),0x401,cmd,0);
      SendMessage(xc.GetHWND(), 0x401, (WPARAM)cmd.c_str(), 0);
         return 1;
      }
@@ -64,7 +63,8 @@
         if(comdid.left(3) == L"IK_")
         {
            xstring cmd = comdid.mid(3, comdid.length());
            SendCtrlCmd(GetControl(L"cell"),cmd);
         SendCtrlCmd(cell.GetHWND(), cmd);
            return 1;
         }
         else if(comdid==L"xmFileOpen")
@@ -123,4 +123,4 @@
         
         return 1;
      }      
};