From 62a635fd585aa1bafb83c2aea1ac29a508a77ae2 Mon Sep 17 00:00:00 2001
From: xj qian <qianxj15@sina.com>
Date: 星期一, 22 七月 2024 23:25:50 +0800
Subject: [PATCH] update assign

---
 jrj/xframe/xcontrol/xcombobox.hpp |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

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