From 8da3dba7cd9f7d64876af84c2ce37da87d7113d2 Mon Sep 17 00:00:00 2001 From: LiFan <2308045698@qq.com> Date: 星期一, 02 九月 2024 18:52:38 +0800 Subject: [PATCH] update --- jrj/xframe/wobject/xcontrol.hpp | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/jrj/xframe/wobject/xcontrol.hpp b/jrj/xframe/wobject/xcontrol.hpp index c001204..02c03d1 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; @@ -46,7 +47,8 @@ int nLen = GetTextLength(); xstring xs; - GetWindowTextW(GetHWND(),xs.sure(nLen+1),nLen + 1); + wchar_t* buf = xs.sure(nLen + 1); + GetWindowTextW(GetHWND(),buf , nLen + 1); return xs; } @@ -61,4 +63,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