| | |
| | | #include "kobject/kwin.hpp" |
| | | #include "win32/win.hpp" |
| | | #include "wobject/xstring.hpp" |
| | | |
| | | using kwin=Hxsoft::XFrame::IXFWin; |
| | | using kcontrol = Hxsoft::XFrame::IXFControl; |
| | | |
| | |
| | | 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; |
| | | } |
| | | |
| | |
| | | { |
| | | return ((kcontrol*)this->getNativePointer())->GetElement(); |
| | | } |
| | | |
| | | Hxsoft::XFrame::xbObject* QueryItem(xstring pItem) |
| | | { |
| | | return ((kcontrol*)this->getNativePointer())->QueryItem((LPTSTR)pItem.c_str()); |
| | | } |
| | | }; |