| | |
| | | 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: |
| | |
| | | { |
| | | //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; |
| | | } |
| | | |
| | |
| | | } |
| | | 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; |
| | |
| | | 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); |
| | |
| | | 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") { |