From 2670a91426860337ce5cba63608656971e288cee Mon Sep 17 00:00:00 2001
From: LiFan <2308045698@qq.com>
Date: 星期五, 05 七月 2024 14:21:10 +0800
Subject: [PATCH] update
---
jrj/project/business/Public/UserGroupPersonSelect.cpp | 90 ++++++
jrj/project/business/Public/UserGroupSelect.cpp | 90 ++++++
jrj/project/business/Public/UserGroupShareEx.cpp | 90 ++++++
jrj/project/business/Public/SupplierUserGroupPersonSelect.cpp | 90 ++++++
jrj/project/business/Public/GroupManagerList.cpp | 90 ++++++
jrj/project/business/Public/UserGroupMaint.cpp | 90 ++++++
jrj/project/business/Public/UserGroupShare.cpp | 90 ++++++
jrj/project/business/Public/UserGroupPersonSelectEx.cpp | 90 ++++++
jrj/ext-jrj/ext-jrj.vcxproj | 9
9 files changed, 729 insertions(+), 0 deletions(-)
diff --git a/jrj/ext-jrj/ext-jrj.vcxproj b/jrj/ext-jrj/ext-jrj.vcxproj
index c608b4f..8937255 100644
--- a/jrj/ext-jrj/ext-jrj.vcxproj
+++ b/jrj/ext-jrj/ext-jrj.vcxproj
@@ -376,6 +376,7 @@
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
</ClCompile>
+ <ClCompile Include="..\project\business\Public\GroupManagerList.cpp" />
<ClCompile Include="..\project\business\Public\memo.edit.new.cpp">
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild>
</ClCompile>
@@ -387,6 +388,14 @@
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
</ClCompile>
+ <ClCompile Include="..\project\business\Public\search.dialog.cpp" />
+ <ClCompile Include="..\project\business\Public\SupplierUserGroupPersonSelect.cpp" />
+ <ClCompile Include="..\project\business\Public\UserGroupMaint.cpp" />
+ <ClCompile Include="..\project\business\Public\UserGroupPersonSelect.cpp" />
+ <ClCompile Include="..\project\business\Public\UserGroupPersonSelectEx.cpp" />
+ <ClCompile Include="..\project\business\Public\UserGroupSelect.cpp" />
+ <ClCompile Include="..\project\business\Public\UserGroupShare.cpp" />
+ <ClCompile Include="..\project\business\Public\UserGroupShareEx.cpp" />
<ClCompile Include="..\project\business\quote.enquiry.cpp">
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild>
</ClCompile>
diff --git a/jrj/project/business/Public/GroupManagerList.cpp b/jrj/project/business/Public/GroupManagerList.cpp
new file mode 100644
index 0000000..1898a28
--- /dev/null
+++ b/jrj/project/business/Public/GroupManagerList.cpp
@@ -0,0 +1,90 @@
+class SearchDlg : public xframe
+ {
+ xnode m_agentNode; //Agent Condition
+
+ xcontrol sle_1;
+
+ int SetAgent()
+ {
+ string xfNodeAgentArea = "agentarea";
+ xnode anode = GetAgentNode(xfNodeAgentArea);
+ if(m_agentNode)
+ {
+ SetAgentNodeContent (anode,m_agentNode);
+ }
+ else
+ {
+ msxml::IXMLDOMElement xframeElement = GetElement();
+ msxml::IXMLDOMElement agent = xframeElement.selectSingleNode("agent/"+xfNodeAgentArea+"[1]/*");
+ if(agent)
+ {
+ string s = agent.xml;
+ m_agentNode = SetAgentNodeContent (anode,s);
+ }
+ }
+ return 1;
+ }
+
+ //焦点激活处理函数
+ int OnSetFocus(ref TEvent evt,int param)
+ {
+ //重置工具条
+ //SetAgent();
+ return 1;
+ }
+
+ int OnOk()
+ {
+ if(GetParam())
+ {
+ xaserverarg arg = GetParam();
+ arg.AddArg("text",GetControl("sl_search").GetText());
+ CloseWindow();
+ }
+ return 1;
+ }
+
+ //命令发布函数
+ int OnCmdDispatch(string comdid)
+ {
+ if(comdid=="xmCancel")
+ {
+ CloseWindow();
+ return 1;
+ }
+ else if(comdid=="xmOk") return OnOk();
+ return 0;
+ }
+
+ //命令处理事件
+ int OnXCommand(ref TXCommandEvent evt,int param)
+ {
+ return OnCmdDispatch(evt.pStrID);
+ }
+
+ int OnAttachEvent()
+ {
+ //绑定工具条点击事件
+ AttachEvent("WM_XCOMMAND",OnXCommand);
+ //获取焦点事件,用于重置工具条
+ AttachEvent("WM_SETFOCUS",OnSetFocus);
+ }
+
+ int onload()
+ {
+ sle_1 = GetControl("sl_search");
+ int x = win32::GetWindowLong(sle_1.GetId(), -16); //GWL_STYLE
+ x = x+ 0x0008;
+ win32::SetWindowLong(sle_1.GetId(), -16,x);//sle_1是编辑窗口控件
+
+ OnAttachEvent();
+ if(GetParam())
+ {
+ xaserverarg arg = GetParam();
+ GetControl("sl_search").SetText(arg.GetArgString("text"));
+ }
+
+ return 1;
+ }
+
+ };
\ No newline at end of file
diff --git a/jrj/project/business/Public/SupplierUserGroupPersonSelect.cpp b/jrj/project/business/Public/SupplierUserGroupPersonSelect.cpp
new file mode 100644
index 0000000..1898a28
--- /dev/null
+++ b/jrj/project/business/Public/SupplierUserGroupPersonSelect.cpp
@@ -0,0 +1,90 @@
+class SearchDlg : public xframe
+ {
+ xnode m_agentNode; //Agent Condition
+
+ xcontrol sle_1;
+
+ int SetAgent()
+ {
+ string xfNodeAgentArea = "agentarea";
+ xnode anode = GetAgentNode(xfNodeAgentArea);
+ if(m_agentNode)
+ {
+ SetAgentNodeContent (anode,m_agentNode);
+ }
+ else
+ {
+ msxml::IXMLDOMElement xframeElement = GetElement();
+ msxml::IXMLDOMElement agent = xframeElement.selectSingleNode("agent/"+xfNodeAgentArea+"[1]/*");
+ if(agent)
+ {
+ string s = agent.xml;
+ m_agentNode = SetAgentNodeContent (anode,s);
+ }
+ }
+ return 1;
+ }
+
+ //焦点激活处理函数
+ int OnSetFocus(ref TEvent evt,int param)
+ {
+ //重置工具条
+ //SetAgent();
+ return 1;
+ }
+
+ int OnOk()
+ {
+ if(GetParam())
+ {
+ xaserverarg arg = GetParam();
+ arg.AddArg("text",GetControl("sl_search").GetText());
+ CloseWindow();
+ }
+ return 1;
+ }
+
+ //命令发布函数
+ int OnCmdDispatch(string comdid)
+ {
+ if(comdid=="xmCancel")
+ {
+ CloseWindow();
+ return 1;
+ }
+ else if(comdid=="xmOk") return OnOk();
+ return 0;
+ }
+
+ //命令处理事件
+ int OnXCommand(ref TXCommandEvent evt,int param)
+ {
+ return OnCmdDispatch(evt.pStrID);
+ }
+
+ int OnAttachEvent()
+ {
+ //绑定工具条点击事件
+ AttachEvent("WM_XCOMMAND",OnXCommand);
+ //获取焦点事件,用于重置工具条
+ AttachEvent("WM_SETFOCUS",OnSetFocus);
+ }
+
+ int onload()
+ {
+ sle_1 = GetControl("sl_search");
+ int x = win32::GetWindowLong(sle_1.GetId(), -16); //GWL_STYLE
+ x = x+ 0x0008;
+ win32::SetWindowLong(sle_1.GetId(), -16,x);//sle_1是编辑窗口控件
+
+ OnAttachEvent();
+ if(GetParam())
+ {
+ xaserverarg arg = GetParam();
+ GetControl("sl_search").SetText(arg.GetArgString("text"));
+ }
+
+ return 1;
+ }
+
+ };
\ No newline at end of file
diff --git a/jrj/project/business/Public/UserGroupMaint.cpp b/jrj/project/business/Public/UserGroupMaint.cpp
new file mode 100644
index 0000000..1898a28
--- /dev/null
+++ b/jrj/project/business/Public/UserGroupMaint.cpp
@@ -0,0 +1,90 @@
+class SearchDlg : public xframe
+ {
+ xnode m_agentNode; //Agent Condition
+
+ xcontrol sle_1;
+
+ int SetAgent()
+ {
+ string xfNodeAgentArea = "agentarea";
+ xnode anode = GetAgentNode(xfNodeAgentArea);
+ if(m_agentNode)
+ {
+ SetAgentNodeContent (anode,m_agentNode);
+ }
+ else
+ {
+ msxml::IXMLDOMElement xframeElement = GetElement();
+ msxml::IXMLDOMElement agent = xframeElement.selectSingleNode("agent/"+xfNodeAgentArea+"[1]/*");
+ if(agent)
+ {
+ string s = agent.xml;
+ m_agentNode = SetAgentNodeContent (anode,s);
+ }
+ }
+ return 1;
+ }
+
+ //焦点激活处理函数
+ int OnSetFocus(ref TEvent evt,int param)
+ {
+ //重置工具条
+ //SetAgent();
+ return 1;
+ }
+
+ int OnOk()
+ {
+ if(GetParam())
+ {
+ xaserverarg arg = GetParam();
+ arg.AddArg("text",GetControl("sl_search").GetText());
+ CloseWindow();
+ }
+ return 1;
+ }
+
+ //命令发布函数
+ int OnCmdDispatch(string comdid)
+ {
+ if(comdid=="xmCancel")
+ {
+ CloseWindow();
+ return 1;
+ }
+ else if(comdid=="xmOk") return OnOk();
+ return 0;
+ }
+
+ //命令处理事件
+ int OnXCommand(ref TXCommandEvent evt,int param)
+ {
+ return OnCmdDispatch(evt.pStrID);
+ }
+
+ int OnAttachEvent()
+ {
+ //绑定工具条点击事件
+ AttachEvent("WM_XCOMMAND",OnXCommand);
+ //获取焦点事件,用于重置工具条
+ AttachEvent("WM_SETFOCUS",OnSetFocus);
+ }
+
+ int onload()
+ {
+ sle_1 = GetControl("sl_search");
+ int x = win32::GetWindowLong(sle_1.GetId(), -16); //GWL_STYLE
+ x = x+ 0x0008;
+ win32::SetWindowLong(sle_1.GetId(), -16,x);//sle_1是编辑窗口控件
+
+ OnAttachEvent();
+ if(GetParam())
+ {
+ xaserverarg arg = GetParam();
+ GetControl("sl_search").SetText(arg.GetArgString("text"));
+ }
+
+ return 1;
+ }
+
+ };
\ No newline at end of file
diff --git a/jrj/project/business/Public/UserGroupPersonSelect.cpp b/jrj/project/business/Public/UserGroupPersonSelect.cpp
new file mode 100644
index 0000000..1898a28
--- /dev/null
+++ b/jrj/project/business/Public/UserGroupPersonSelect.cpp
@@ -0,0 +1,90 @@
+class SearchDlg : public xframe
+ {
+ xnode m_agentNode; //Agent Condition
+
+ xcontrol sle_1;
+
+ int SetAgent()
+ {
+ string xfNodeAgentArea = "agentarea";
+ xnode anode = GetAgentNode(xfNodeAgentArea);
+ if(m_agentNode)
+ {
+ SetAgentNodeContent (anode,m_agentNode);
+ }
+ else
+ {
+ msxml::IXMLDOMElement xframeElement = GetElement();
+ msxml::IXMLDOMElement agent = xframeElement.selectSingleNode("agent/"+xfNodeAgentArea+"[1]/*");
+ if(agent)
+ {
+ string s = agent.xml;
+ m_agentNode = SetAgentNodeContent (anode,s);
+ }
+ }
+ return 1;
+ }
+
+ //焦点激活处理函数
+ int OnSetFocus(ref TEvent evt,int param)
+ {
+ //重置工具条
+ //SetAgent();
+ return 1;
+ }
+
+ int OnOk()
+ {
+ if(GetParam())
+ {
+ xaserverarg arg = GetParam();
+ arg.AddArg("text",GetControl("sl_search").GetText());
+ CloseWindow();
+ }
+ return 1;
+ }
+
+ //命令发布函数
+ int OnCmdDispatch(string comdid)
+ {
+ if(comdid=="xmCancel")
+ {
+ CloseWindow();
+ return 1;
+ }
+ else if(comdid=="xmOk") return OnOk();
+ return 0;
+ }
+
+ //命令处理事件
+ int OnXCommand(ref TXCommandEvent evt,int param)
+ {
+ return OnCmdDispatch(evt.pStrID);
+ }
+
+ int OnAttachEvent()
+ {
+ //绑定工具条点击事件
+ AttachEvent("WM_XCOMMAND",OnXCommand);
+ //获取焦点事件,用于重置工具条
+ AttachEvent("WM_SETFOCUS",OnSetFocus);
+ }
+
+ int onload()
+ {
+ sle_1 = GetControl("sl_search");
+ int x = win32::GetWindowLong(sle_1.GetId(), -16); //GWL_STYLE
+ x = x+ 0x0008;
+ win32::SetWindowLong(sle_1.GetId(), -16,x);//sle_1是编辑窗口控件
+
+ OnAttachEvent();
+ if(GetParam())
+ {
+ xaserverarg arg = GetParam();
+ GetControl("sl_search").SetText(arg.GetArgString("text"));
+ }
+
+ return 1;
+ }
+
+ };
\ No newline at end of file
diff --git a/jrj/project/business/Public/UserGroupPersonSelectEx.cpp b/jrj/project/business/Public/UserGroupPersonSelectEx.cpp
new file mode 100644
index 0000000..1898a28
--- /dev/null
+++ b/jrj/project/business/Public/UserGroupPersonSelectEx.cpp
@@ -0,0 +1,90 @@
+class SearchDlg : public xframe
+ {
+ xnode m_agentNode; //Agent Condition
+
+ xcontrol sle_1;
+
+ int SetAgent()
+ {
+ string xfNodeAgentArea = "agentarea";
+ xnode anode = GetAgentNode(xfNodeAgentArea);
+ if(m_agentNode)
+ {
+ SetAgentNodeContent (anode,m_agentNode);
+ }
+ else
+ {
+ msxml::IXMLDOMElement xframeElement = GetElement();
+ msxml::IXMLDOMElement agent = xframeElement.selectSingleNode("agent/"+xfNodeAgentArea+"[1]/*");
+ if(agent)
+ {
+ string s = agent.xml;
+ m_agentNode = SetAgentNodeContent (anode,s);
+ }
+ }
+ return 1;
+ }
+
+ //焦点激活处理函数
+ int OnSetFocus(ref TEvent evt,int param)
+ {
+ //重置工具条
+ //SetAgent();
+ return 1;
+ }
+
+ int OnOk()
+ {
+ if(GetParam())
+ {
+ xaserverarg arg = GetParam();
+ arg.AddArg("text",GetControl("sl_search").GetText());
+ CloseWindow();
+ }
+ return 1;
+ }
+
+ //命令发布函数
+ int OnCmdDispatch(string comdid)
+ {
+ if(comdid=="xmCancel")
+ {
+ CloseWindow();
+ return 1;
+ }
+ else if(comdid=="xmOk") return OnOk();
+ return 0;
+ }
+
+ //命令处理事件
+ int OnXCommand(ref TXCommandEvent evt,int param)
+ {
+ return OnCmdDispatch(evt.pStrID);
+ }
+
+ int OnAttachEvent()
+ {
+ //绑定工具条点击事件
+ AttachEvent("WM_XCOMMAND",OnXCommand);
+ //获取焦点事件,用于重置工具条
+ AttachEvent("WM_SETFOCUS",OnSetFocus);
+ }
+
+ int onload()
+ {
+ sle_1 = GetControl("sl_search");
+ int x = win32::GetWindowLong(sle_1.GetId(), -16); //GWL_STYLE
+ x = x+ 0x0008;
+ win32::SetWindowLong(sle_1.GetId(), -16,x);//sle_1是编辑窗口控件
+
+ OnAttachEvent();
+ if(GetParam())
+ {
+ xaserverarg arg = GetParam();
+ GetControl("sl_search").SetText(arg.GetArgString("text"));
+ }
+
+ return 1;
+ }
+
+ };
\ No newline at end of file
diff --git a/jrj/project/business/Public/UserGroupSelect.cpp b/jrj/project/business/Public/UserGroupSelect.cpp
new file mode 100644
index 0000000..1898a28
--- /dev/null
+++ b/jrj/project/business/Public/UserGroupSelect.cpp
@@ -0,0 +1,90 @@
+class SearchDlg : public xframe
+ {
+ xnode m_agentNode; //Agent Condition
+
+ xcontrol sle_1;
+
+ int SetAgent()
+ {
+ string xfNodeAgentArea = "agentarea";
+ xnode anode = GetAgentNode(xfNodeAgentArea);
+ if(m_agentNode)
+ {
+ SetAgentNodeContent (anode,m_agentNode);
+ }
+ else
+ {
+ msxml::IXMLDOMElement xframeElement = GetElement();
+ msxml::IXMLDOMElement agent = xframeElement.selectSingleNode("agent/"+xfNodeAgentArea+"[1]/*");
+ if(agent)
+ {
+ string s = agent.xml;
+ m_agentNode = SetAgentNodeContent (anode,s);
+ }
+ }
+ return 1;
+ }
+
+ //焦点激活处理函数
+ int OnSetFocus(ref TEvent evt,int param)
+ {
+ //重置工具条
+ //SetAgent();
+ return 1;
+ }
+
+ int OnOk()
+ {
+ if(GetParam())
+ {
+ xaserverarg arg = GetParam();
+ arg.AddArg("text",GetControl("sl_search").GetText());
+ CloseWindow();
+ }
+ return 1;
+ }
+
+ //命令发布函数
+ int OnCmdDispatch(string comdid)
+ {
+ if(comdid=="xmCancel")
+ {
+ CloseWindow();
+ return 1;
+ }
+ else if(comdid=="xmOk") return OnOk();
+ return 0;
+ }
+
+ //命令处理事件
+ int OnXCommand(ref TXCommandEvent evt,int param)
+ {
+ return OnCmdDispatch(evt.pStrID);
+ }
+
+ int OnAttachEvent()
+ {
+ //绑定工具条点击事件
+ AttachEvent("WM_XCOMMAND",OnXCommand);
+ //获取焦点事件,用于重置工具条
+ AttachEvent("WM_SETFOCUS",OnSetFocus);
+ }
+
+ int onload()
+ {
+ sle_1 = GetControl("sl_search");
+ int x = win32::GetWindowLong(sle_1.GetId(), -16); //GWL_STYLE
+ x = x+ 0x0008;
+ win32::SetWindowLong(sle_1.GetId(), -16,x);//sle_1是编辑窗口控件
+
+ OnAttachEvent();
+ if(GetParam())
+ {
+ xaserverarg arg = GetParam();
+ GetControl("sl_search").SetText(arg.GetArgString("text"));
+ }
+
+ return 1;
+ }
+
+ };
\ No newline at end of file
diff --git a/jrj/project/business/Public/UserGroupShare.cpp b/jrj/project/business/Public/UserGroupShare.cpp
new file mode 100644
index 0000000..1898a28
--- /dev/null
+++ b/jrj/project/business/Public/UserGroupShare.cpp
@@ -0,0 +1,90 @@
+class SearchDlg : public xframe
+ {
+ xnode m_agentNode; //Agent Condition
+
+ xcontrol sle_1;
+
+ int SetAgent()
+ {
+ string xfNodeAgentArea = "agentarea";
+ xnode anode = GetAgentNode(xfNodeAgentArea);
+ if(m_agentNode)
+ {
+ SetAgentNodeContent (anode,m_agentNode);
+ }
+ else
+ {
+ msxml::IXMLDOMElement xframeElement = GetElement();
+ msxml::IXMLDOMElement agent = xframeElement.selectSingleNode("agent/"+xfNodeAgentArea+"[1]/*");
+ if(agent)
+ {
+ string s = agent.xml;
+ m_agentNode = SetAgentNodeContent (anode,s);
+ }
+ }
+ return 1;
+ }
+
+ //焦点激活处理函数
+ int OnSetFocus(ref TEvent evt,int param)
+ {
+ //重置工具条
+ //SetAgent();
+ return 1;
+ }
+
+ int OnOk()
+ {
+ if(GetParam())
+ {
+ xaserverarg arg = GetParam();
+ arg.AddArg("text",GetControl("sl_search").GetText());
+ CloseWindow();
+ }
+ return 1;
+ }
+
+ //命令发布函数
+ int OnCmdDispatch(string comdid)
+ {
+ if(comdid=="xmCancel")
+ {
+ CloseWindow();
+ return 1;
+ }
+ else if(comdid=="xmOk") return OnOk();
+ return 0;
+ }
+
+ //命令处理事件
+ int OnXCommand(ref TXCommandEvent evt,int param)
+ {
+ return OnCmdDispatch(evt.pStrID);
+ }
+
+ int OnAttachEvent()
+ {
+ //绑定工具条点击事件
+ AttachEvent("WM_XCOMMAND",OnXCommand);
+ //获取焦点事件,用于重置工具条
+ AttachEvent("WM_SETFOCUS",OnSetFocus);
+ }
+
+ int onload()
+ {
+ sle_1 = GetControl("sl_search");
+ int x = win32::GetWindowLong(sle_1.GetId(), -16); //GWL_STYLE
+ x = x+ 0x0008;
+ win32::SetWindowLong(sle_1.GetId(), -16,x);//sle_1是编辑窗口控件
+
+ OnAttachEvent();
+ if(GetParam())
+ {
+ xaserverarg arg = GetParam();
+ GetControl("sl_search").SetText(arg.GetArgString("text"));
+ }
+
+ return 1;
+ }
+
+ };
\ No newline at end of file
diff --git a/jrj/project/business/Public/UserGroupShareEx.cpp b/jrj/project/business/Public/UserGroupShareEx.cpp
new file mode 100644
index 0000000..1898a28
--- /dev/null
+++ b/jrj/project/business/Public/UserGroupShareEx.cpp
@@ -0,0 +1,90 @@
+class SearchDlg : public xframe
+ {
+ xnode m_agentNode; //Agent Condition
+
+ xcontrol sle_1;
+
+ int SetAgent()
+ {
+ string xfNodeAgentArea = "agentarea";
+ xnode anode = GetAgentNode(xfNodeAgentArea);
+ if(m_agentNode)
+ {
+ SetAgentNodeContent (anode,m_agentNode);
+ }
+ else
+ {
+ msxml::IXMLDOMElement xframeElement = GetElement();
+ msxml::IXMLDOMElement agent = xframeElement.selectSingleNode("agent/"+xfNodeAgentArea+"[1]/*");
+ if(agent)
+ {
+ string s = agent.xml;
+ m_agentNode = SetAgentNodeContent (anode,s);
+ }
+ }
+ return 1;
+ }
+
+ //焦点激活处理函数
+ int OnSetFocus(ref TEvent evt,int param)
+ {
+ //重置工具条
+ //SetAgent();
+ return 1;
+ }
+
+ int OnOk()
+ {
+ if(GetParam())
+ {
+ xaserverarg arg = GetParam();
+ arg.AddArg("text",GetControl("sl_search").GetText());
+ CloseWindow();
+ }
+ return 1;
+ }
+
+ //命令发布函数
+ int OnCmdDispatch(string comdid)
+ {
+ if(comdid=="xmCancel")
+ {
+ CloseWindow();
+ return 1;
+ }
+ else if(comdid=="xmOk") return OnOk();
+ return 0;
+ }
+
+ //命令处理事件
+ int OnXCommand(ref TXCommandEvent evt,int param)
+ {
+ return OnCmdDispatch(evt.pStrID);
+ }
+
+ int OnAttachEvent()
+ {
+ //绑定工具条点击事件
+ AttachEvent("WM_XCOMMAND",OnXCommand);
+ //获取焦点事件,用于重置工具条
+ AttachEvent("WM_SETFOCUS",OnSetFocus);
+ }
+
+ int onload()
+ {
+ sle_1 = GetControl("sl_search");
+ int x = win32::GetWindowLong(sle_1.GetId(), -16); //GWL_STYLE
+ x = x+ 0x0008;
+ win32::SetWindowLong(sle_1.GetId(), -16,x);//sle_1是编辑窗口控件
+
+ OnAttachEvent();
+ if(GetParam())
+ {
+ xaserverarg arg = GetParam();
+ GetControl("sl_search").SetText(arg.GetArgString("text"));
+ }
+
+ return 1;
+ }
+
+ };
\ No newline at end of file
--
Gitblit v1.9.3