From a7042deea556e6ac56f4849de2ec448b5aa0592f Mon Sep 17 00:00:00 2001
From: xj qian <qianxj15@sina.com>
Date: 星期三, 24 七月 2024 10:07:49 +0800
Subject: [PATCH] update operator itemstring
---
jrj/project/business/Enquiry/SKU.PictureView.Product3.cpp | 28 +++++++++++++---------------
1 files changed, 13 insertions(+), 15 deletions(-)
diff --git a/jrj/project/business/Enquiry/SKU.PictureView.Product3.cpp b/jrj/project/business/Enquiry/SKU.PictureView.Product3.cpp
index 09867d7..01123d4 100644
--- a/jrj/project/business/Enquiry/SKU.PictureView.Product3.cpp
+++ b/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") {
--
Gitblit v1.9.3