From 82f66d1ff1afcacc2d9331ce3662c3667e044976 Mon Sep 17 00:00:00 2001
From: xj qian <qianxj15@sina.com>
Date: 星期五, 06 九月 2024 18:47:10 +0800
Subject: [PATCH] update

---
 jrj/project/business/SystemSettings/Buglist.Developer.hxsoft.cpp |   31 +++++++++++++++++--------------
 1 files changed, 17 insertions(+), 14 deletions(-)

diff --git a/jrj/project/business/SystemSettings/Buglist.Developer.hxsoft.cpp b/jrj/project/business/SystemSettings/Buglist.Developer.hxsoft.cpp
index 3624178..a415cb5 100644
--- a/jrj/project/business/SystemSettings/Buglist.Developer.hxsoft.cpp
+++ b/jrj/project/business/SystemSettings/Buglist.Developer.hxsoft.cpp
@@ -6,7 +6,7 @@
 
 #include "vbusiness/vframe/listwin.vframe.vbusiness.hpp"
 #include "viewobject/view.base.hpp"
-
+#include "xcontrol/xshtml.hpp"
 
 using xml = KXMLDOMDocument;
 	class __declspec(dllexport) BugListWin : public xframe
@@ -18,11 +18,11 @@
 		xstring m_EntityID;
 		xstring m_EntityType;
 
-		htmlctrl m_Html;
+		xshtml m_Html;
 		xcontrol m_Edit;
 		xcombobox m_cb;
 	public:
-		BugListWin(void* implPtr, HWND hWnd) :xframe(implPtr, hWnd) {}
+		BugListWin(void* implPtr, HWND hWnd) :xframe(implPtr, hWnd),m_Edit(nullptr) {}
 	public:
 		static BugListWin* CreateInstance(void* implPtr, void* hWnd)
 		{
@@ -61,13 +61,14 @@
 			return 1;
 		}
 
-		static stdcall int GetModuleFileName(int hModule, xstring lpFileName, int nSize) native from "kernel32.dll" alias "GetModuleFileNameW";
-		static stdcall int PathRemoveFileSpec(xstring lpFileName) native from "shlwapi.dll" alias "PathRemoveFileSpecW";
+		//static stdcall int GetModuleFileName(int hModule, xstring lpFileName, int nSize) native from "kernel32.dll" alias "GetModuleFileNameW";
+		//static stdcall int PathRemoveFileSpec(xstring lpFileName) native from "shlwapi.dll" alias "PathRemoveFileSpecW";
 
 		xstring GetModulePath()
 		{
-			xstring str = L"";
-			str = str.space(255);
+			//xstring str = L"";
+			//str = str.space(255);
+			wchar_t str[255];
 			GetModuleFileName(0, str, 250);
 			PathRemoveFileSpec(str);
 			return str;
@@ -75,11 +76,12 @@
 
 		xstring GetModuleTmpPath()
 		{
-			xstring str = L"";
-			str = str.space(255);
+			//xstring str = L"";
+			//str = str.space(255);
+			wchar_t str[255];
 			GetModuleFileName(0, str, 250);
 			PathRemoveFileSpec(str);
-			xstring tmp = str + L"\\Temp";
+			xstring tmp = (xstring)str + L"\\Temp";
 			xaserver::CreateDirectory(tmp);
 			return tmp;
 		}
@@ -190,9 +192,10 @@
 			return 1;
 		}
 
-		int OnHtmlClick(TEvent* evt, int p)
+		int OnHtmlClick(TEvent* evt, LPARAM p)
 		{
-			ref  HTMLNMHDR p = evt.pnmh;
+#if 0
+			HTMLNMHDR& p = *(HTMLNMHDR*)evt->notify.pnmh;
 			const xstring d = m_Html.GetData(p.object);
 			if (d == L"") return -1;
 			xstring file = d.mid(0, d.find(L"|##@@|", 0));
@@ -214,14 +217,14 @@
 				alert(L"文件打开失败2!");
 				return -1;
 			}
-
+#endif
 			return -1;
 		}
 
 		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;
 		}

--
Gitblit v1.9.3