LiFan
2024-07-24 f7f68dbf94f9da14863f155d88cdaec47352ba99
jrj/project/business/Enquiry/SKU.PictureView.Product3.cpp
@@ -15,8 +15,8 @@
   public:
      ximageview im;
      xml doc;
      int m_winHwnd;
      int ParentHWND;
      HWND m_winHwnd;
      HWND ParentHWND;
   public:
      SKUProductPictureView3(void* implPtr, HWND hWnd) :xframe(implPtr, hWnd) {}
   public:
@@ -29,15 +29,15 @@
      {
         //xnode anode = GetAgentNode(name);
         xnode anode = GetAgentNode(name);
         int LayerFlow_None = 0x00000001;
         int LayerFlow_UnLayer = 0x00000100;
         int LayerFlow_NS = 0x00000004;
         int LayerFlow_WE = 0x00000008;
         int LayerFlow_Control = 0x00000010;
         int LayerFlow_None_ = 0x00000001;
         int LayerFlow_UnLayer_ = 0x00000100;
         int LayerFlow_NS_ = 0x00000004;
         int LayerFlow_WE_ = 0x00000008;
         int LayerFlow_Control_ = 0x00000010;
         if (f)
            anode.SetLayerFlow(LayerFlow_WE | LayerFlow_Control);
            anode.SetLayerFlow(LayerFlow_WE_ | LayerFlow_Control_);
         else
            anode.SetLayerFlow(LayerFlow_None | LayerFlow_UnLayer);
            anode.SetLayerFlow(LayerFlow_None_ | LayerFlow_UnLayer_);
         return 1;
      }
@@ -108,15 +108,14 @@
         }
         else if (comdid == L"xmDelete")
         {
            int hh = ParentHWND;
            if (hh > 0)
            if (ParentHWND)
            {
               int nIndex = im.GetSelectIndex();
               if (nIndex < 0 || nIndex >= im.GetImageCount()) return 0;
               im.RemoveImage(nIndex);
               im.Redraw();
               xstring comd = L"Delete:" +xstring(nIndex);
               SendMessage(hh, 0x401, comd, 0);
               SendMessage(ParentHWND, 0x401, (WPARAM)comd.c_str(), 0);
            }
         }
         return 0;
@@ -179,8 +178,7 @@
            xaserverarg arg;
            //   
            arg = GetArg();
            xstring hh = arg.GetArgString(L"ParentHWND");
            ParentHWND = hh.toInt();
            ParentHWND  = (HWND)arg.GetParam(L"ParentHWND");
            xstring openflag = arg.GetArgString(L"OpenFlag");
            //alert(openflag);
            if (openflag != L"0") hiddenBox(L"xmDelete", false);
@@ -218,7 +216,7 @@
            im.AddImages(L"/business/products/chanpin/BL-002/417884.jpg", L"x3");
            im.Redraw();
         }
         win32::SetFocus(im.GetId());
         SetFocus(im.GetHWND());
         xstring userno = xaserver::GetUserNo();
         /*if(userno == L"1003" || userno == L"1137" || userno == L"admin") {