#pragma once #include "kbase.hpp" #include "kxml.hpp" namespace Hxsoft{ namespace XFrame { class IXFWin; class IXFControl : public xbObject { public: HWND GetHWND(); public: IXFWin* GetWindow(); public: IXNode * GetXNode(); KXMLDOMElement GetElement(); public: RECT & GetAreaRect(); RECT & GetContentRect(); public: int SetAreaRect(RECT & rc); int SetContentRect(RECT & rc); public: RECT GetClientRect(); public: int Redraw(); public: int DoAcceptText(); virtual int AcceptText(){return 0;}; public: int SetStyle(DWORD dwStyle); int SetStyleEx(DWORD dwStyleEx); public: bool SetLayerFlow(LPCTSTR pFlow,bool bRedraw); bool SwitchLayer(LPTSTR pStrLayerSheet,LPTSTR pStrLayerFrame); public: xbObject * QueryItem(LPTSTR pItem); public: bool GetContentExtent(SIZE &sz); }; }}