From 9b43e4edb9c5ebc065d6af4810ae66690fdc50df Mon Sep 17 00:00:00 2001 From: LiFan <2308045698@qq.com> Date: 星期二, 15 四月 2025 16:55:43 +0800 Subject: [PATCH] update --- jrj/project/business/SystemSettings/BugMaint.Developer.hxsoft.cpp | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/jrj/project/business/SystemSettings/BugMaint.Developer.hxsoft.cpp b/jrj/project/business/SystemSettings/BugMaint.Developer.hxsoft.cpp index fbd16e2..0d6fd37 100644 --- a/jrj/project/business/SystemSettings/BugMaint.Developer.hxsoft.cpp +++ b/jrj/project/business/SystemSettings/BugMaint.Developer.hxsoft.cpp @@ -6,6 +6,7 @@ #include "vbusiness/vframe/listwin.vframe.vbusiness.hpp" #include "viewobject/view.base.hpp" +#include "xcontrol/xshtml.hpp" using xml = KXMLDOMDocument; class __declspec(dllexport) BugMaintWin : public xframe @@ -20,10 +21,10 @@ xstring m_ConnectID; xcontrol m_Edit; - htmlctrl m_Html; + xshtml m_Html; xcombobox m_cb; public: - BugMaintWin(void* implPtr, HWND hWnd) :xframe(implPtr, hWnd) {} + BugMaintWin(void* implPtr, HWND hWnd) :xframe(implPtr, hWnd), m_Edit(nullptr){} public: static BugMaintWin* CreateInstance(void* implPtr, void* hWnd) { @@ -90,7 +91,7 @@ int AppendItem(xml x,KXMLDOMElement r,xstring name, xstring value) { KXMLDOMElement e = x.createElement(name); - e.text() = value; + e.settext(value); r.appendChild(e); return 1; } @@ -132,7 +133,7 @@ l.setAttribute(L"caption", L""+tmp); KXMLDOMElement b = x.createElement(L"xtoolbutton"); b.setAttribute(L"width", L"18"); - b.setAttribute(L"name", L"att_"+i.toString()); + b.setAttribute(L"name", (xstring)L"att_"+xstring(i).c_str()); b.setAttribute(L"image", L"1,5"); e.appendChild(l); e.appendChild(b); @@ -151,8 +152,8 @@ { xstring guid = publiccode::GetGuid(); xstring str = guid.left(2); - xstring ret = xaserver::UploadFile(L"attachment"+str, guid+L".jpg".GetHWND(),L"",false); - int nIndex = m_cb.AddItem(ret, guid+L".jpg"); + xstring ret = xaserver::UploadFile(L"attachment"+str, guid+L".jpg",GetHWND(),L"",false); + int nIndex = m_cb.AddItem(ret.c_str(), (guid + L".jpg").c_str()); showAtt(); return 1; } @@ -261,6 +262,7 @@ int OnHtmlClick(TEvent* evt, int p) { + ref HTMLNMHDR p = evt.pnmh; const xstring d = m_Html.GetData(p.object); if(d == L"") return -1; -- Gitblit v1.9.3