|  |  | 
 |  |  | #include "kobject/kwin.hpp" | 
 |  |  | #include "win32/win.hpp" | 
 |  |  | #include "wobject/xstring.hpp" | 
 |  |  |  | 
 |  |  | using kwin=Hxsoft::XFrame::IXFWin; | 
 |  |  | using kcontrol = Hxsoft::XFrame::IXFControl; | 
 |  |  |  | 
 |  |  | 
 |  |  |       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; | 
 |  |  | 
 |  |  |       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()); | 
 |  |  |    } | 
 |  |  | }; |