From 9b3b2eb20b09e13da837a28f16e552ba70a090c4 Mon Sep 17 00:00:00 2001
From: LiFan <2308045698@qq.com>
Date: 星期四, 24 四月 2025 14:48:21 +0800
Subject: [PATCH] update

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

diff --git a/jrj/xframe/wobject/xcontrol.hpp b/jrj/xframe/wobject/xcontrol.hpp
index 4bd5f02..6938018 100644
--- a/jrj/xframe/wobject/xcontrol.hpp
+++ b/jrj/xframe/wobject/xcontrol.hpp
@@ -5,6 +5,7 @@
 #include "kobject/kwin.hpp"
 #include "win32/win.hpp"
 #include "wobject/xstring.hpp"
+
 using kwin=Hxsoft::XFrame::IXFWin;
 using kcontrol = Hxsoft::XFrame::IXFControl;
 
@@ -22,6 +23,14 @@
 		return ((kcontrol*)this->getNativePointer())->GetHWND();
 	}
 
+	bool operator ==(xcontrol& rhs)
+	{
+		return getNativePointer() == rhs.getNativePointer();
+	}
+	operator LPARAM()
+	{
+		return (LPARAM)getNativePointer();
+	}
 	int SetReadOnlyEx(const bool )
 	{
 		int EM_SETREADONLY_ = 0x00CF;
@@ -62,4 +71,9 @@
 	{
 		return ((kcontrol*)this->getNativePointer())->GetElement();
 	}
+
+	Hxsoft::XFrame::xbObject* QueryItem(xstring pItem)
+	{
+		return ((kcontrol*)this->getNativePointer())->QueryItem((LPTSTR)pItem.c_str());
+	}
 };

--
Gitblit v1.9.3