From a4d2315ee4ca3f6177b4fb2526bed2feff3d89be Mon Sep 17 00:00:00 2001
From: lifan <2308045698@qq.com>
Date: 星期三, 22 十月 2025 16:52:58 +0800
Subject: [PATCH] update
---
jrj/project/business/SystemSettings/BugMaint.Developer.hxsoft.cpp | 16 +++++++++-------
1 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/jrj/project/business/SystemSettings/BugMaint.Developer.hxsoft.cpp b/jrj/project/business/SystemSettings/BugMaint.Developer.hxsoft.cpp
index ec10349..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;
}
@@ -176,7 +177,7 @@
for(i=0; i<s; i++)
{
xstring tmp = m_cb.GetLBText( i);
- xstring tmp2 = m_cb.GetItemData(i);
+ xstring tmp2 = (string)m_cb.GetItemData(i);
KXMLDOMElement e = x.createElement(L"item");
e.setAttribute(L"name", L""+tmp);
e.setAttribute(L"file", L""+tmp2);
@@ -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