#pragma once #include "wobject/xcontrol.hpp" #include "kobject/kdwpages.hpp" using kdwpages = Hxsoft::XFrame::IXPages; class xdwpages : public xcontrol { public: xdwpages() :xcontrol(nullptr) {} xdwpages(void* implptr) :xcontrol(implptr) {} public: xdwpages& operator =(const kcontrol* pcontrol) { this->setNativePointer((void*)pcontrol); return *this; } public: kdwpages* GetKDwPage() { return (kdwpages*)this->GetNativePtr(); } public: int SetMaxPage(int mpage) { return GetKDwPage()->SetMaxPage(mpage); } int SetCurPage(int cpage) { return GetKDwPage()->SetCurPage(cpage); } int GetMaxPage() { return GetKDwPage()->GetMaxPage(); } int GetCurPage() { return GetKDwPage()->GetCurPage(); } };