From ec64938e6a062bf4fc245c66d6693b200dda82e0 Mon Sep 17 00:00:00 2001
From: LiFan <2308045698@qq.com>
Date: 星期一, 22 七月 2024 16:59:58 +0800
Subject: [PATCH] update
---
jrj/xframe/xcontrol/xcombobox.hpp | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/jrj/xframe/xcontrol/xcombobox.hpp b/jrj/xframe/xcontrol/xcombobox.hpp
index ca9a725..f1df0f1 100644
--- a/jrj/xframe/xcontrol/xcombobox.hpp
+++ b/jrj/xframe/xcontrol/xcombobox.hpp
@@ -133,7 +133,7 @@
int AddItem(string str, KXMLDOMElement ele)
{
- AddItem(str, ele.ptr());
+ return AddItem(str, ele.ptr());
}
int AddItem(string str, LPARAM p)
{
@@ -150,6 +150,15 @@
SetItemData( h, (LPARAM)p);
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)
{
@@ -271,7 +280,7 @@
return SendMessage(hWnd, CB_GETITEMDATA_, nIndex, 0);
}
- static int AddItem(HWND hWnd,string str, int p)
+ static int AddItem(HWND hWnd,string str, LPARAM p)
{
int CB_ADDSTRING_ = 0x0143;
int h = SendMessage(hWnd, CB_ADDSTRING_, 0, (LPARAM)str);
--
Gitblit v1.9.3