From 3f7c146b097c84ecd159a7de8391168e44b04cc8 Mon Sep 17 00:00:00 2001
From: xj qian <qianxj15@sina.com>
Date: 星期四, 18 七月 2024 13:55:25 +0800
Subject: [PATCH] update item
---
jrj/project/vindexmenu.cpp | 3 +--
jrj/project/business/PO/PO.BatchPrecess.polist.cpp | 0
jrj/xframe/xcontrol/xcombobox.hpp | 9 +++++++++
3 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/jrj/project/business/PO/PO.BatchPrecess.polist.cpp b/jrj/project/business/PO/PO.BatchPrecess.polist.cpp
index b716322..49a1864 100644
--- a/jrj/project/business/PO/PO.BatchPrecess.polist.cpp
+++ b/jrj/project/business/PO/PO.BatchPrecess.polist.cpp
Binary files differ
diff --git a/jrj/project/vindexmenu.cpp b/jrj/project/vindexmenu.cpp
index 8da9fdb..6cfe2f0 100644
--- a/jrj/project/vindexmenu.cpp
+++ b/jrj/project/vindexmenu.cpp
@@ -86,9 +86,8 @@
for (i=0;i<s;i++)
{
KXMLDOMElement xitem= li.item(i);
- void * p = new KXMLDOMElement(xitem);
int k = cbx_panelName.AddItem(xstring(i).c_str());
- cbx_panelName.SetItemData(k, (LPARAM)p);
+ cbx_panelName.SetItemData(k, xitem);
}
return 1;
}
diff --git a/jrj/xframe/xcontrol/xcombobox.hpp b/jrj/xframe/xcontrol/xcombobox.hpp
index d7e5447..f1df0f1 100644
--- a/jrj/xframe/xcontrol/xcombobox.hpp
+++ b/jrj/xframe/xcontrol/xcombobox.hpp
@@ -151,6 +151,15 @@
return h;
}
+ int InsertString(string str, KXMLDOMElement p)
+ {
+ int CB_INSERTSTRING_ = 0x014A;
+ int h = SendMessage(GetHWND(), CB_INSERTSTRING_, 0, (LPARAM)str);
+
+ SetItemData(h, p);
+ return h;
+ }
+
int InsertString( string str, LPARAM p)
{
int CB_INSERTSTRING_ = 0x014A;
--
Gitblit v1.9.3