From 456d9dc293ffbd4b7d1cfef16583eb77e48428b4 Mon Sep 17 00:00:00 2001
From: xj qian <qianxj15@sina.com>
Date: 星期二, 23 七月 2024 09:46:57 +0800
Subject: [PATCH] update items

---
 jrj/xframe/wobject/xaserverarg.hpp |   27 ++++++++++++++++++++++++---
 1 files changed, 24 insertions(+), 3 deletions(-)

diff --git a/jrj/xframe/wobject/xaserverarg.hpp b/jrj/xframe/wobject/xaserverarg.hpp
index fa73996..e42a90e 100644
--- a/jrj/xframe/wobject/xaserverarg.hpp
+++ b/jrj/xframe/wobject/xaserverarg.hpp
@@ -1,5 +1,6 @@
 #pragma once
 #include "xnative.hpp"
+#include "xcontrol.hpp"
 
 namespace Hxsoft{ namespace XFrame
 {
@@ -39,7 +40,7 @@
 	xaserverarg(kxaserverarg* impl) :xnative(impl) {}
 	xaserverarg():xnative(Hxsoft::XFrame::IXAServerArg::CreateInstance()){}
 	xaserverarg(xaserverarg& rhs) {
-		((kxaserverarg*)rhs.getNativePointer())->AddRef_();
+		if(rhs.GetKXAServerArg()) rhs.GetKXAServerArg()->AddRef_();
 		this->setNativePointer(rhs.GetNativePtr());
 	}
 	xaserverarg(xaserverarg&& rhs) {
@@ -67,6 +68,11 @@
 		if (rhs)rhs->AddRef_();
 		SetNativePtr(rhs);
 		return *this;
+	}
+
+	operator LPARAM()
+	{
+		return (LPARAM)this;
 	}
 
 public:
@@ -104,7 +110,7 @@
 	{
 		return ((Hxsoft::XFrame::IXAServerArg*)getNativePointer())->SetArg(argname,val,typ);
 	}
-	string GetString() //alias "?GetString@IXAServerArg@XFrame@Hxsoft@@QAEPB_WXZ"  from "xframe.dll";
+	xstring GetString() //alias "?GetString@IXAServerArg@XFrame@Hxsoft@@QAEPB_WXZ"  from "xframe.dll";
 	{
 		return ((Hxsoft::XFrame::IXAServerArg*)getNativePointer())->GetString();
 	}
@@ -129,11 +135,26 @@
 	{
 		return ((Hxsoft::XFrame::IXAServerArg*)getNativePointer())->GetArgInt((LPTSTR)argname);
 	}
-	string GetArgString(string argname) //alias "?GetArgString@IXAServerArg@XFrame@Hxsoft@@QAEPA_WPA_W@Z";
+	xstring GetArgString(string argname) //alias "?GetArgString@IXAServerArg@XFrame@Hxsoft@@QAEPA_WPA_W@Z";
 	{
 		return ((Hxsoft::XFrame::IXAServerArg*)getNativePointer())->GetArgString((LPTSTR)argname);
 	}
 
+	int SetParam(LPCTSTR pArgName, xcontrol& xc)
+	{
+		return ((Hxsoft::XFrame::IXAServerArg*)getNativePointer())->SetParam(pArgName,(LPARAM)xc.getNativePointer());
+	}
+
+	int SetParam(LPCTSTR pArgName, HWND hWnd)
+	{
+		return ((Hxsoft::XFrame::IXAServerArg*)getNativePointer())->SetParam(pArgName, (LPARAM)hWnd);
+	}
+
+	int SetParam(LPCTSTR pArgName, KXMLDOMElement ele)
+	{
+		return ((Hxsoft::XFrame::IXAServerArg*)getNativePointer())->SetParam(pArgName, ele.ptr());
+	}
+
 	int SetParam(LPCTSTR pArgName, LPARAM pValue)
 	{
 		return ((Hxsoft::XFrame::IXAServerArg*)getNativePointer())->SetParam(pArgName,pValue);

--
Gitblit v1.9.3